Bradley Taunt
Front-end devsigner

First letter pseudo element

In today’s TypeTip™ we will be taking a look at the often overlooked :first-letter CSS pseudo element. Though you might only use this for specific article-format web pages, it’s still a nice-to-have in your web dev toolset.


Like most pseudo elements, nothing has to change with your pre-existing HTML structure:

    <p>It was a bright cold day in April, and the clocks were striking thirteen.</p>


Here’s where the magic happens:

p:first-letter {
    color: orangered;
    font-size: 250%;

Live CodePen

See the Pen First Letter Pseudo Element by Bradley Taunt (@bradleytaunt) on CodePen.

Have something to say?

Reach out and chat with me on Twitter. That way your thoughts aren't lost forever on this site.