29

Possible Duplicate:
What does this CSS shorthand font syntax mean?

Sometimes the font is specified using two values, for example

font: 14px/60px

Why are two values specified? When the 60px will be used? Thanks.

Community
  • 1
  • 1
user1117313
  • 1,923
  • 9
  • 26
  • 36

3 Answers3

37

The 60px is the line-height. It's a shorthand for:

font-size: 14px;
line-height: 60px;
punkrockbuddyholly
  • 9,675
  • 7
  • 36
  • 69
6

60px will be the line-height value

see http://www.developerfusion.com/code/5342/css-font-shorthand-rule/

Fabrizio Calderan
  • 120,726
  • 26
  • 164
  • 177
5

The first value give the font size, the second the line height.

Nico Haase
  • 11,420
  • 35
  • 43
  • 69