Dmitriy Scherbakov
Dmitriy Scherbakov

Reputation: 91

How to set multiple font-size in font property?

When I want to have some spare fonts, I use font property, it's a classic case.

font: 30px Regular, "Segoe UI";    

But it's necessary to change font size too. Code below doesn't work:

font: 30px Regular, 40px "Segoe UI";

I use SCSS in my project, could i do this with help of it?

Upvotes: 0

Views: 304

Answers (3)

Dmitriy Scherbakov
Dmitriy Scherbakov

Reputation: 91

the only correct way is to use CSS inheritance system for this.

thanks for asnwers.

Upvotes: 0

KuldipKoradia
KuldipKoradia

Reputation: 3031

its not possible to set font size for two time in a single shorthand property.

Upvotes: 1

hisbvdis
hisbvdis

Reputation: 1380

"Font" property used as shorthand for other properties which customize font settings , and not for multiple fonts set

Upvotes: 1

Related Questions