KevinBui
KevinBui

Reputation: 1099

How to define alternative font-family corresponding to font-size CSS

I declare font family in CSS:

body { 
    font-family: "Segoe UI", "Verdana";
}

We all know it means that if the browser does not support the first font, it tries the next font.

Now I want if the browser apply first font, it will apply font-size 12px; if the browser apply seccond font, it will apply font-size 10px,... and so on...

I wonder if we can declare like this

body { 
    font-family: "Segoe UI", "Verdana";
    font-size: 12pt, 10pt;
}

Upvotes: 4

Views: 5411

Answers (1)

pizza247
pizza247

Reputation: 3897

You should be able to use font-size-adjust

Upvotes: 1

Related Questions