Hi all,
I'm trying to implement a CSS menu and am having a problem with the menu pushing the other content/divs down when the menu expands.
Can anyone tell me what CSS I need to stop the main body content being pushed when the menu expands?
Thanks
Hi all,
I'm trying to implement a CSS menu and am having a problem with the menu pushing the other content/divs down when the menu expands.
Can anyone tell me what CSS I need to stop the main body content being pushed when the menu expands?
Thanks
Use possition: absolute to throw the element (sub menu container) out of the document flow.
Ahh now I see.
The keyword is the CSS property position: absolute. It makes elements "float" over the other content. Absolutely positioned menu elements won't push the page content.