Why
is used after multiple floating DIVS in a container DIV?

后端 未结 6 1602
眼角桃花
眼角桃花 2020-12-30 06:25

I have encountered a

at many places, but I am not aware why is it done? Can someone brief me on this, why it is used in
6条回答
  •  滥情空心
    2020-12-30 07:20

    To sum it up, it's like telling the browser to not allow anything (i.e., any element be it a div, span, anchor, table etc) either on the left or on the right of the previous element. This will make the next element move to the next line.

提交回复
热议问题