I have a container that is positioned relatively and contains div
s for header, sidebar, main-content and footer.
My problem is with the sidebar and footer components. With my sidebar, I have had to position this absolutely with top and left values specified (it also has a z-index of 10 set).
This is all fine, but by having the sidebar as absolute, with the sidebar holding my menu, this sidebar div
actually sits on top of my footer div
, which I would like it to sit below the sidebar. So as my menu sidebar grows, my footer div
(which has no CSS position) just always sits after the height of my menu, which can be any height.
Unfortunately, my site is not hosted as yet and so am unable to point you to it.