Specifying Lining Numerals or Oldstyle Numerals with CSS

June 24, 2014
by

← Back
body {
-moz-font-feature-settings:"lnum"; 
-webkit-font-feature-settings:"lnum"; 
font-feature-settings:"lnum";
}

Thanks to Stack Overflow, I now know of a new CSS tag for modern browsers that lets you choose whether to display lining numerals or oldstyle numerals with css. I had no idea that this existed and I am so glad it does.



Play Wildwood

Download free on the App Store!