Coding for Beginners: CSS Basics #80— What is Font Variant?

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerTypography8 min

About this video

This short lesson introduces the CSS font-variant shorthand and its main sub-properties for controlling small caps, numerals, fractions and ligatures in web text. It is aimed at designers who want more control over web typography and are new to the code.

What you’ll learn

  • Apply font-variant: small-caps to set text in small capitals
  • Choose numeric variants such as tabular or oldstyle numbers and stacked fractions
  • Enable or disable common, discretionary and contextual ligatures with font-variant-ligatures