Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS: Layer Vs Resolution Issue
Old 03-14-2007, 02:35 AM CSS: Layer Vs Resolution Issue
Junior Talker

Posts: 1
Trades: 0
Hi Folks,

I have an issue with the CSS layer. When I increase my screen resolution, my layer moves towards left. I want it to be positioned right irrespective of the resolution. Below is the code:

#home1 {
margin: 0 auto;
text-align:right;
float:right;
position:absolute;
width:189px;
height:95px;
display:block;
left: 680px;
top: 25px;
border-bottom: 2px solid red;
border-top: 2px solid red;
border-right: 2px solid red;
border-left: 2px solid red;
}

Please help me out!
Thanks much,
-Lakshana
lakshana is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-14-2007, 02:39 AM Re: CSS: Layer Vs Resolution Issue
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Lose the absolute positioning in that case. If you need it, use right: (distance from right edge of the screen) instead of left: But it's one of those concepts that's best left to the experts or to those sites that already provide working code samples so you don't have to mess with it much if you're a newcomer.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-14-2007, 03:28 PM Re: CSS: Layer Vs Resolution Issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Judging by your code it looks you took the 'throw everything in but the kitchen sink until it works" approach.

#home1 {
margin: 0 auto; - CENTERS the div - if you want it to the right.. remove the "auto" .

text-align:right;
float:right;
position:absolute;

float AND absolute ?? Which is it ? You can't have both. Remove the absolute as Adam advised.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS: Layer Vs Resolution Issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20285 seconds with 12 queries