DEV Community

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

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.

Collapse
 
blackjyn profile image
ZVHR El Ekhsaan

Logic error: Flexbox and Grids are never meant to be float replacement whatsoever