Initial Letter with Emoji

Chris Coyier Chris Coyier on

In some random playing around, I saw that the ::first-letter pseudo-element is happy to match an emoji. And then initial-letter is happy to bump it up in size which feels like an easy way to make a kinda fun looking list that would survive syndication and such. Firefox doesn’t support initial-letter but whatever, it’s easily a progressive-enhancement thing. Interestingly, Safari requires -webkit-initial-letter which feels like one of the very last remaining vendor prefixes we need to think about. Even mask stuff is unprefixed now.

Wanna learn CSS from a course?

Frontend Masters logo

FYI, we have a full CSS learning path with multiple courses depending on how you want to approach it.

7-Day Free Trial

Leave a Reply

Your email address will not be published. Required fields are marked *

Did you know?

Frontend Masters Donates to open source projects. $363,806 contributed to date.