View Full Version : Positioning Issue CSS -RESOLVED-

07-20-2007, 04:33 AM
Hello. I am trying to position my navbar elements with an UL. Usually, I set the list up and use margins on the UL to position it. However, in this layout, when margins or padding are added to the nav UL it moves the background image for #nav. I dont understand why this is happening. Any help is much appreciated.



07-20-2007, 04:50 AM
Thats because padding adds to overall width and/or height if you add 5px padding then your nav becomes 40px high.

#nav {
background:url(images/menuBG.gif) no-repeat;
padding:7px 7px 0;
Try that.

07-20-2007, 04:59 AM
Thanks for the quick repsonse Aerospace. Now I understand.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum