3 ms·
Using floats for anything but actually floating boxes/images in running text should be a thing of the past. We have flexbox and media-queries for those purposes
by the8472 13y ago
Using floats for anything but actually floating boxes/images in running text should be a thing of the past. We have flexbox and media-queries for those purposes now.
I wait for the day that float-based layouts will be seen as antiquated as table-based layouts.
- McGlockenshire 13y agoUnfortunately flexbox wasn't present in IE versions prior to 10, and then it was prefixed until 11. Firefox also only has partial support. http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox - see the "Known issues" tab for other caveats. This is going to prevent widespread adoption for a while.
- pcwalton 13y agoFloats also parallelize badly, unless you clear them. It may be the case that using floats for layout will perform badly as well.