Styling the First Letter in CSS


Use the ::first-letter pseudo-element to style the first letter of a block of text.

Source Code

p::first-letter {
    font-size: 200%;
    color: red;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments