John
John

Reputation: 3050

What does this part of the font tag do? (CSS)

font: 400 48px/1.2 'Oswald', sans-serif;

Can anyone tell me what the 48px/1.2 means? In particular the 1.2.

What this value do and mean?

Upvotes: 2

Views: 112

Answers (2)

dsgriffin
dsgriffin

Reputation: 68596

This sets two properties and is equivalent to:

font-size: 48px;
line-height: 1.2;

The 1.2 sets a line-height value.

Here is the complete explanation below:

Font

Upvotes: 3

GajendraSinghParihar
GajendraSinghParihar

Reputation: 9131

The Complete Explanation of Font is in the Image Below:

Font

Upvotes: 3

Related Questions