How can I stop float left?

后端 未结 10 588
野趣味
野趣味 2021-01-31 01:13

I have the following code:

相关标签:
10条回答
  • 2021-01-31 01:37

    You should also check out the "clear" property in css in case removing a float isn't an option

    0 讨论(0)
  • 2021-01-31 01:37

    For some reason none of the above fixes worked for me (I had the same problem), but this did:

    Try putting all of the floated elements in a div element: <div class="row">...</div>.

    Then add this CCS: .row::after {content: ""; clear: both; display: table;}

    0 讨论(0)
  • 2021-01-31 01:40

    The css clear: left in your adm class should stop the div floating with the elements above it.

    0 讨论(0)
  • Just add overflow:hidden in the first div style. That should be enough.

    0 讨论(0)
提交回复
热议问题