Question
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 would fall back to Arial at 18px, then Helvetica at 18px, etc.
Or, could I use JS to achieve a similar effect?