Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Yet another CSS question from me :-)

Yet another CSS question from me :-)
Thread Tools
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Jan 25, 2004, 12:43 PM
 
This is a scrollbar problem it seems, to get an idea of what I mean, first visit (don't mind the ugly black text):

http://www.talacia.com/sites/puertob.../?page=booking

Notice there is no scrollbar on this page, roll over the navigation and notice it displays perfectly. Now goto:

http://www.talacia.com/sites/puertob...e=theapartment

Notice there is a scrollbar, and now rollover one of the links again and you'll notice the hover selection is a pixel off, here are 2 picture comparisons.


This is correct.


This is wrong.

My question, is there a fix for this?

Thanks,
Oliver
     
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Jan 25, 2004, 01:45 PM
 
Well, the scrollbar shifts everything over (since it takes up horizontal space), and if I'm not mistaken, you basically have the entire site centered on the page... in that case, you'll always have that issue (AFAIK). You could try setting the navigation bar an exact amount from the left side (in that case, you'll lose the liquid-design, and it would look a bit strange in larger monitors).
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jan 25, 2004, 02:00 PM
 
I'm not showing this problem on Gecko. However, when things shift like that, it usually has to do with margins, padding, or borders. Borders can be especially tricky, but I don't think this particular problem is a border issue.

I noticed in your CSS that you put padding: 5px on "#navigationList li a". You might want to try putting that on "#navigationList li" instead. Browsers tend to be a little more inconsistent when it comes to putting padding on inline-level elements, so putting it on the block-level li might work better.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Jan 25, 2004, 04:27 PM
 
I tried moving over the padding, didn't seem to work. Any other ideas?

[Also, does :hover work in IE/mac or Windows? The link thing I use doesn't seem to work in IE Mac.]
     
RGB
Mac Elite
Join Date: Jan 2002
Location: College in the Land of Oz
Status: Offline
Reply With Quote
Jan 25, 2004, 10:52 PM
 
Originally posted by iOliverC:
I tried moving over the padding, didn't seem to work. Any other ideas?

[Also, does :hover work in IE/mac or Windows? The link thing I use doesn't seem to work in IE Mac.]
In IE, :hover can only be attributed to an a, so a:hover. Other browsers can handle a :hover on anything, such as li:hover. This is a horrible limitation of IE.
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:53 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2