I am working on a pure CSS dropdown menu. (IE6 is not important to me right now.)
I have everything inside of a "wrapper" div for centering.
The page has 4 divs inside of "#wrapper" the first being "#topbar", the second the "#nav", the third a "#content" box and the fourth, a "#footer".
The "#content" and "#footer" divs have absolute positioning to stop them from jumping down when a submenu is exposed. This works in IE8 and Chrome and FF, but IE8;s compatibility mode show that IE7 will render the "#content" and "#footer" div off to the left of the centered column. Also, absolute positioning is used to keep the footer on the bottom of the page. removing it fixes the ie7 bug, but it causes everything to shift down when the submenus are exposed.
Is there a way to fix IE7's rendering of a left margin on the bottom divs without absolute positioning? or with it?
I prefer pure CSS.
Believe it or not, I'm using a bunch of span elements, not ul or div. Should I be using ul/li structure? I find it to be extra code.