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...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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...