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.
The font-size CSS property sets the size of the font. Changing the font size also updates the sizes of the font size-relative <length> units, such as em , ex , and so forth.
The font-size property in CSS is used to specify the height and size of the font. It affects the size of the text of an element.
To change the font size in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-size. HTML5 do not support the <font> tag, so the CSS style is used to add font size.
The font-weight property is used to specify the weight of the font. The bolder and lighter values are relative to the inherited font weight, while the other values are absolute font weights.
The 60px is the line-height. It's a shorthand for:
font-size: 14px; line-height: 60px;
60px will be the line-height value
see http://www.developerfusion.com/code/5342/css-font-shorthand-rule/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With