Forums

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 ?!

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32738
    XaviJr
    Participant

    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.

    Any solution?

    #75972
    Anonymous
    Inactive

    Place a clearing element under the ul inside the div. Like this:



    After doing that you can set bottom margins on the menu wrap div no problem!

    #75870
    XaviJr
    Participant

    the clear property worked, thanks guys. i really have to write some cook manual with this always present problems.

    #147102
    nesmoth
    Participant

    thank you very much for this tip!
    putting overflow hidden in the UL worked for me.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.