PDA

View Full Version : Any other way to do this simple CSS nav bar?



ballcorn
Jul 9th, 2009, 10:03 PM
Right now when does MouseOver on the nav items the background + 2px border turn green, but in order to keep all the next from moving around during the mouseover I need to have a white 2px border by default and this looks pretty crappy. Any other ways I can do this?

this is how it looks currently...

http://www.myleef.com/info.php

SB65
Jul 9th, 2009, 10:10 PM
Try setting the border colour on the link to transparent instead of white.

ballcorn
Jul 9th, 2009, 10:15 PM
I did try, but its equivalent to not having a border at all. The items still move around on mouseover.

SB65
Jul 9th, 2009, 10:40 PM
You need to set the border colour as :

border: 2px solid transparent

ballcorn
Jul 11th, 2009, 04:38 AM
cool, worked. reps