Click to See Complete Forum and Search --> : IE Ul List?


1234567890
06-18-2009, 12:50 PM
In firefox, Safair this looks great, However, in IE7 the ul is aligned a bit differently. What would the correct IE ul code be for this?

http://mibsolutionsllc.com/westport/

Any help would be greatly appreciated.

1234567890
06-18-2009, 12:57 PM
found it. for #nav ul I had an extra 0 for the margin. Thanks!

WebWarrior
06-18-2009, 01:07 PM
There are a few ways to center-align nav menu blocks. Using margin: 0 auto is more consistent across different browsers. Although for geater precision I would recomment using px instead of % for #nav's width. Also, I forgot to mention that you will need to set text-align: center for the parent element (#menu). This is only for IE6, which refuses to center align your elements unless you do so.

Hope this helps.