You are here : cssCSS 3font

font - CSS 3

The font shorthand property sets all the font properties in one declaration.The properties that can be set, are (in order): "font-style font-variant font-weight font-size/line-height 
font-family"The font-size and font-family values are required. If one of the other values 
are missing, the default values will be inserted, if any.Note: The line-height property sets the space between lines.


Syntax

font: font-style font-variant font-weight font-size/line-height 
	font-family|caption|icon|menu|message-box|small-caption|status-bar|initial|inherit;


Example

p.ex1
	{
	   
	font: 15px arial, sans-serif;
	}

	p.ex2
	{
	   
	font: italic bold 12px/30px Georgia, serif;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference