DEV Community

Do you even use CSS floats these days šŸ¤”

Nikita Hlopov on February 20, 2020

I was wondering if anyone is still using CSS float property today?
If so what's the reason or possible application for that?

Collapse
 
mattmcadams profile image
Matthew McAdams

Almost always the answer for me is no. However, there is a rare time where a client really wants that text to wrap around an image and a float is probably the best way to go.

Iā€™d never use them for anything else now that we have flexbox and grid

Collapse
 
pfacklam profile image
Paul Facklam

Nope. It's been a while since I used it the last time. But I am sure that there is still an use case for it.

Collapse
 
sharakpl profile image
Tom

I think it's used mostly in text editors (WYSIWYG) to arrange imaages inside block of text. In other parts flex and grid is the way to go