Saleh
Saleh

Reputation: 3032

What this CSS code means (font-size division)?

Sorry everyone, I really can't find any better title for my question.

I have encountered with this code

font: 9pt/18px Tahoma;

Do you know what it means?

Upvotes: 36

Views: 5874

Answers (4)

ethan
ethan

Reputation: 141

/* The shorthand */
font: 9pt/18px Tahoma;

/* The expanded version of the above style */
font-size:9pt;
line-height:18px;
font-family:Tahoma;

Upvotes: 14

Babiker
Babiker

Reputation: 18818

The first unit is font-size, the second is line-height.

Upvotes: 3

kinakuta
kinakuta

Reputation: 9037

It's the font-size and line-height when you're using shorthand for the font declaration. So 9pt font-size and 18px line-height.

Upvotes: 4

Spudley
Spudley

Reputation: 168843

Yes. It's a short-hand way of writing font-size and line-height together.

Upvotes: 47

Related Questions