Skip to content
Advertisement

Tag: font-size

Specify fallback font sizes in CSS?

Is there any way to specify different font sizes for fallback fonts in CSS? I want to do something like this (which obviously does not work): div { font-family: “Arial Narrow”, Arial, Helvetica, sans-serif; font-size: 20px, 18px, 18px, 18px; } The idea being that Arial Narrow would display at 20px if the user has it installed; if not, the browser

Advertisement