The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Div with list inside without height ?!
I have a div with ul inside and a bunch of items. Both the div and the ul appear to be without height according to firebug and since i need to make some bottom margin at the end of the list with this 0 height no margin is appearing.
Place a clearing element under the ul inside the div. Like this:
Menu Item 1
Menu Item 2
Menu Item 3
After doing that you can set bottom margins on the menu wrap div no problem!
the clear property worked, thanks guys. i really have to write some cook manual with this always present problems.
thank you very much for this tip!
putting overflow hidden in the UL worked for me.