Alan Vitek

Specifying Lining Numerals or Oldstyle Numerals with CSS

By Alan Vitek

June 24, 2014

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.