DEV Community

Discussion on: When was the last time you used float?

Collapse
 
alohci profile image
Nicholas Stimpson
Is there still a place for floating in CSS?

For sure. If Float was a new property, devs would be quite excited of gaining the ability to wrap text around images and figures which is the thing that flex and grid can't do.

The issue with float was that it was shoe-horned into a use that it was never designed for, as a way of achieving grid layouts. Now we have the tools to do that properly, float can return to its original intended use.

Collapse
 
cchana profile image
Charanjit Chana

That's definitely a use case I thought of while writing the post but I can't even remember the last time I saw this layout device used anywhere other than Wikipedia.