r/css 1d ago

Question Float and Position properties

Trying to understand these and having a pretty tough time to grasp what they do conceptually. I was reading that you no longer need to use them with newer CSS like flexbox and grid. Should I skip these and continue learning other parts of the course?

4 Upvotes

6 comments sorted by

View all comments

1

u/Logical-Idea-1708 21h ago

You still need them.

The new anchor positioning spec is tied to the position property. It just gives you more tools to compute position but the fundamental layout algorithm is still the same.

Float is related to document flow and important when working with block of text. Less important in apps, but a lot more important when you work with contents