I have a 960px fix width page that is segmented horizontally. One of the segments is a navigation, which contains a UL which contains a BG image. For that reason, I want the UL to have 240px of padding on the left and 30px of padding on the right.
Because I MAY have a drop down menu in this navigation, I used display:table instead of overflow:hidden for it to clear its child floats.
Here is the weirdness :
I used the regular box model to calculate the width. 960-(240+30)=690px.
in FF this works great, but Safari is treating it like the old IE box model bug.. that is the width of the table is 690px INCLUDING the height. GRRR. Is this a bug in Safari (or a bug in FF)? Is there a way around it?
Code:#navW ul.nav{ background:url(images/design/klaas_nav.jpg) no-repeat left top #000; margin:0 auto; width:960px; display:table; table-layout:fixed; list-style:none; padding:.5em 30px .5em 240px;}





Reply With Quote



Bookmarks