📝 CSS-Tricks 277: Animating Height

View this newsletter on the web.

[Robin]: 🤔 Is it :before or ::before? I always get a little confused when writing a pseudo-element like this…

.element:before { } .element::before { }

Spoilers: it’s ::before. Sorry to start this newsletter off with so much drama. I should have better prepared you for this hot take in advance.

[Chris]: We covered this a few years back as well. The only reason you’d use the single-colon syntax is if you’re needing to support IE 8. The deepest people tend to go these days is IE 11, but it’s more common not to support IE at all. So yeah, double colon for sure.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s