Re:Faster Layouts with CSS Grid and Subgrid
by tannhaeuser on Friday October 18, 2019 @02:39PM
(#21293961)
Floats are still useful when you want to express structured document flow layouts with illustrations for nearby body text, side-nav link boxes, aligned or otherwise flow-parametered effects such as initials, syndicated/contributed content, or when you just want to float text around images.
[ Parent
| on HN ]
Every time I thought I have needed float, I have always later found a cleaner way to do it without float.
Re:Faster Layouts with CSS Grid and Subgrid
by shawnz on Friday October 18, 2019 @05:57PM
(#21295385)
That's probably because float is almost always used for things which it's not designed for. For cases like what the parent described, which float is actually meant for, there is no alternative.
A good example is the floating picture boxes next to paragraphs on Wikipedia. How would you implement such a feature without floats?