The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] List loosing background
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/
It is because the divs are floated. Adding overflow: hidden can apparently overcome this (but clearing float directly seems more semantic) :
overflow: hidden
http://stackoverflow.com/a/16493463/3168107
Wow, thanks that is exactly what I want.