DEV Community

loading...

Discussion on: Stop Using Float in CSS - Here Are Your Alternatives

Collapse
chakudi profile image
Vaishali JS

The alternatives like flexbox and grid are great and we should use them for layouts.

But don't stop using floats. Floats are still good choice for their original purpuse, ie. Floating text around figures.

👍

Collapse
shahednasser profile image
Shahed Nasser Author

Even if in certain use cases it wouldn’t really be problematic I still think we should move past it. Especially for beginners that still rely on it. It’s more important for them to learn about Flexbox and Grids and use them.

Forem Open with the Forem app