CSS FONT
With CSS you are given great control over the way your text is displayed. You can change the size, color, style, and more. You probably already knew how to make text bold or underlined, but did you know you could resize the size of your font using percentages? Let us begin the lesson with an easy and important font attribute, color!
Example
p {
font: 12px arial
}Â Â Â Â Â
p {
font: italic small-caps bold 12px arial
}Â
p {
font: oblique small-caps 900 12px/14px arial
}
p {
font: menu
}
Possible Values
font-style, font-variant, font-weight, font-size/line-height, font-family: Sets the properties for a font. The line-height value sets the space between lines. The value can be a number, a %, or a font size.
caption: Defines the font that are used by captioned controls (like buttons, drop-downs, etc.)
icon: Defines the fonts that are used by icon labels
menu: Defines the fonts that are used by dropdown menus
message-box: Defines the fonts that are used by dialog boxes
status-bar: Defines the fonts that are used by window status bars
One Response
Hi,
This is suresh i have some doubt about css2 & css3
I have a experience to do style sheets in css2 so i want to update css3 so if i did a site in css3 format it can be accept old browsers its like Ie-6.0,7.0,FF,Opera if accept once you tell what is the deference between the Css2 & CSS3
and also let me know how to update easily myself through online. if u have any style sheet did with css3 format once u give a link for learn
and also i have did one for @fontface import
its working only in Ie6.0, but it’s not working other browsers like FF,Chrome(which has i have version’s
“FF Version 3.0.15″
Chrome Version”3.0.195.33”
where is the problem let me know,