Why for li with style float:left browser evaluates the height of the ul element to 0?

前端 未结 3 1847
逝去的感伤
逝去的感伤 2021-02-06 17:54

In the code presented on the gist : https://gist.github.com/1341600 I am trying to use ul/li elements for grouping together some search form elements (instead of table). When in

3条回答
  •  耶瑟儿~
    2021-02-06 18:42

    Add following css:

    ul.search-inputs {
        overflow: hidden;
    }
    

    Also see this jsfiddle.

提交回复
热议问题