css 3

Icon

A comprehensive CSS 3 reference guide, tutorial, and blog
Are you a CSS expert? Want to contribute? Contact us

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

Value Description
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
small-caption  
status-bar Defines the fonts that are used by window status bars

 

 

Leave a Reply

Pages

What is CSS?

Cascading Style Sheets (CSS) are the modern standard for website presentation. It allows both website developers and users more control over how pages are being displayed on a browser. Style sheets define how elements such as headers, paragraphs, links appear. CSS specifies a priority scheme which determines what style rules apply if/when more than one rule matches against a defined element (the so called cascade).

Follow us on Twitter
css3 on twitter

Please help CSS3.com stay alive and running


Please take a moment to visit our friends
css wrap

Categories

Bad Behavior has blocked 764 access attempts in the last 7 days.

CSS3.com is Digg proof thanks to caching by WP Super Cache!