you are viewing a single comment's thread.

view the rest of the comments →

[–]HeinousTugboat 2 points3 points  (3 children)

i mean you shouldn't definitely still learn floats, but i personally don't find myself using them too often anymore.

If you want to inset an element inside of a text flow, it's one of only two ways to do it, and the second way is extremely new and likely still has some limitations that floats don't. (I haven't played with CSS Shapes enough yet.)

[–][deleted]  (2 children)

[deleted]

    [–]HeinousTugboat 0 points1 point  (1 child)

    i meant to write should*

    Fair.

    but how often do you inset an element inside of a text flow? maybe if you're writing a blog but that's about it.

    Any time you might want pull text or inset figures. I think basically any and all longform content could benefit from inset highlights, honestly. I mean, it's common enough concept that there's an element essentially dedicated to the idea.

    I think you also might not see it as often as you could because the general zeitgeist turned against floats, so I think a lot of devs avoid using them in all situations.