Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] List loosing background

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #198215
    pvl123
    Participant

    Hello Im wondering why content of my li doesnt fit whole div. Why isnt background filled based on heighest element but on min-heigth property?

    http://jsbin.com/taxakoxohu/1/

    #198217
    Shikkediel
    Participant

    It is because the divs are floated. Adding overflow: hidden can apparently overcome this (but clearing float directly seems more semantic) :

    http://stackoverflow.com/a/16493463/3168107

    #198218
    pvl123
    Participant

    Wow, thanks that is exactly what I want.

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