DEV Community

Discussion on: Explanation of the CSS clear float property [Examples]

Collapse
 
frankkubis profile image
Frank Kubis • Edited

You dont need float anymore, witch is part of CSS since 2.1 and supported by all browsers.

Go and use flexbox, it allows much more complex flow operations and is easy to handle: w3schools.com/css/css3_flexbox.asp

If you need to use float, the best way to clear is using pseudo elements: w3schools.com/howto/howto_css_clea...