Stop Using Float in CSS - Here Are Your Alternatives
This article was originally published on my personal blog
Throughout my years of working in CSS, the property that causes the biggest mess in the layout isfloat. Wheneverfloatis used, unexpected behavior occurs at some point in your layout and design...
shahednasser.hashnode.dev3 min read
Mario Giambanco
Director of User Experience Development
Saying "Stop using feature X" is the wrong way to educate people.
Teach both sides of a given feature and let people decide for themselves. Are there better ways to align an element? Sure, probably. But the problem I'm trying to solve is probably not the same as the problem you're trying to solve. Maybe a float works better for me in my project.