0
font:100 1.1em/37px Tahoma, Helvetica, Sans-serif;

What does the 100 mean? font-weight? What does the 1.1em mean? line-height? And 37px? font-size?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Uffo
  • 9,628
  • 24
  • 90
  • 154

3 Answers3

5

Here is a cool font shorthand cheat sheet which can be found here.

So in your example, 100 is the font-weight, 1.1em is the font-size, and 37px is the line-height.

Matt
  • 179
  • 7
nheinrich
  • 1,841
  • 11
  • 17
1

You're right on the font weight, but 1.1em/37px means the font size is 1.1 ems and the line height is 37 pixels, not the other way around.

W3C CSS2.1 font property reference

See also: What does this CSS font shorthand syntax mean?

Community
  • 1
  • 1
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
  • Can I also specify the font-size in px? and is beeter to write it this way in one line as..if I will write it in more lines? – Uffo Oct 30 '11 at 18:36
  • @Uffo: Yes, you can use any CSS unit. You can either use the shorthand property or specify each part separately - use whichever you think will help you understand the code easier. – BoltClock Oct 30 '11 at 18:37
0

Its short hand.

http://htmlhelp.com/reference/css/font/#font

Basically its setting the font size, then family.

bobble14988
  • 1,749
  • 5
  • 26
  • 38