CSS Font
All CSS Font Properties
The number in the "CSS" column indicates in which CSS version the property is defined (CSS1 or CSS2).
Property
|
Description
|
Values
|
font
|
Sets all the font properties in one declaration
|
font-style
font-variant font-weight font-size/line-height font-family caption icon menu message-box small-caption status-bar inherit |
font-family
|
Specifies the font family for text
|
family-name
generic-family inherit |
font-size
|
Specifies the font size of text
|
xx-small
x-small small medium large x-large xx-large smaller larger length % inherit |
font-style
|
Specifies the font style for text
|
normal
italic oblique inherit |
font-variant
|
Specifies whether or not a text should be displayed in a small-caps font
|
normal
small-caps inherit |
font-weight
|
Specifies the weight of a font
|
normal
bold bolder lighter 100 200 300 400 500 600 700 800 900 inherit |
Shorthand Property
You can use the font property to set all the font properties
at once. For example:
<p style="font:italic small-caps bold 15px georgia;">
Applying all the properties on the text at once.
</p>
No comments:
Post a Comment
Please write your view and suggestion....