br clear=“all” vs css solution

前端 未结 5 997
隐瞒了意图╮
隐瞒了意图╮ 2021-01-11 17:27

I have a div that is float:left, and after the div is the rest of the page. In order to keep the rest of the page below the div, I must first place a


5条回答
  •  情话喂你
    2021-01-11 18:15

    Create a class and insert into CSS:

    br.cb { clear: both; }
    

    Insert into HTML:


    This made it past W3 markup and CSS validator.

提交回复
热议问题