Loading...

line-height

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.

CSS class prefixes and related properties

Class name prefixCSS properties
lin-hei-*line-height

CSS class suffixes and property values

Class name suffixCSS properties value
*-3xs12px
*-2xs14px
*-xs16px
*-sm20px
*-md24px
*-lg26px
*-xl28px
*-2xl32px
*-3xl36px
*-4xl40px
*-5xl44px
*-6xl52px
*-7xl64px
*-8xl76px
*-9xl88px

lin-hei: line-height

.lin-hei-3xs.lin-hei-3xs-hover.lin-hei-2xs.lin-hei-2xs-hover.lin-hei-xs.lin-hei-xs-hover.lin-hei-sm.lin-hei-sm-hover.lin-hei-md.lin-hei-md-hover.lin-hei-lg.lin-hei-lg-hover.lin-hei-xl.lin-hei-xl-hover.lin-hei-2xl.lin-hei-2xl-hover.lin-hei-3xl.lin-hei-3xl-hover.lin-hei-4xl.lin-hei-4xl-hover
.lin-hei-3xs {
  line-height: 12px;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.