DEV Community

Calvin
Calvin

Posted on

Video Snippets [1]

Float is better used as a way to wrap text around images. Using float just for text can lead to several challenges that are not experienced with grid and flex. For example, it can be hard to make two elements (with text) that use float be identical in size unless the amount of text used is the same in both elements.

Source: CSS Layouts - Flexbox vs Grid vs Float (https://www.youtube.com/watch?v=hYJvxsgnGMA)

Top comments (0)