Menu

1 / 5

Doin’ Stuff in CSS – CodePen

#codepen#anchor#positioning#float#property
Reading 0:00
15s threshold

The float property in CSS is old school. CSS developers used to have to think about it all the time, because it was one of the mechanisms we had for building actual layouts like side-by-side columns and stuff. Those days are gone, but it doesn’t mean float as a property is entirely dead. It remains the only property where you can get content to flow around another bit of content. Maureen Holland makes that clear in Floats are dead! Long live floats! Even when you’re using something fancy like shape-outside , to actually get the content to flow around the shaped thing, you gotta float!

Speaking of rather new CSS stuff, I feel like Anchor Positioning almost doesn’t get enough praise. Where it felt like @container queries were gonna be the biggest thing since sliced bread, and then actual usage is maybe more niche, to me, it felt like Anchor Positioning was going to be more niche, and it’s turning out to be super commonly useful.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.