Drop Caps in CSS :first-letter

The :first-letter selector is used to specify the style of the first letter of a sentence.

HTML

<p>Drop Caps</p>

CSS

p:first-letter {
  font-size:2rem;
  color : #45a8e3
}

Output

Leave a Reply 0

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