Introduction
CSS Classes
React Components
Cssville has 15 utility classes for line-height. Add one to an element's class attribute to set the property, for example lin-hei-lg. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-lin-hei-lg. Add -hover to the end to apply a class only on hover, as in lin-hei-lg-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| lin-hei-* | line-height |
| Class name suffix | CSS properties value |
|---|---|
| *-3xs | 12px |
| *-2xs | 14px |
| *-xs | 16px |
| *-sm | 20px |
| *-md | 24px |
| *-lg | 26px |
| *-xl | 28px |
| *-2xl | 32px |
| *-3xl | 36px |
| *-4xl | 40px |
| *-5xl | 44px |
| *-6xl | 52px |
| *-7xl | 64px |
| *-8xl | 76px |
| *-9xl | 88px |
.lin-hei-3xs {
line-height: 12px;
}