initial-letter

A modern way to create 'drop caps' (large first letters at the start of a paragraph). You can specify how many lines high the letter should be and how many lines it should sink into the text.

It is documented as part of the CSS Inline specification.

/* Usage Example */
.intro-text::first-letter {
  /* Makes the first letter 3 lines tall */
  initial-letter: 3;
  margin-right: 1.5rem;
}

/* Syntax */
initial-letter: normal;

/* Global values */
initial-letter: inherit;
initial-letter: initial;
initial-letter: revert;
initial-letter: revert-layer;
initial-letter: unset;

This comparison shows how initial-letter works in a real project. View snippet →

Newly available Since 2024 91% global usage

Since 2024 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

110+
122+
9+
110+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC