Go to homepage

Projects /

Drop Cap

How to make the first letter of a paragraph larger in size.

View Demo

How to

The Drop Cap component is a decorative snippet used to make the first letter of a paragraph larger. It's generally applied to <p> elements.

Edit the --drop-cap-lines variable to set the number of lines occupied by the first letter.

:root {
  --drop-cap-lines: 3; // number of lines occupied by the first letter
}

Categories

Bug report & feedback

Component Github page ↗

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.