Tuesday, October 5, 2010

CSS Syntax Guide (1) font properties


CSS Syntax Guide

Font property

1, font-family

Function: used to change the font HTML symbol or element, you can set up a list of available fonts. Browser, the font used by the front to back.
Syntax: (font-family: font 1, font 2, ..., n) fonts
Examples:

Font

2, font-style

Function: make text appear italic, or italic and so flat that stress.
Value:
normal - normal
italic - italic
oblique - skew body
Examples:

Normal

Italic

Oblique

3, font-variant

Function: used in normal and small capital letters switch between fonts.
Value: normal - if the flag inherit the parent element small-caps setting, the keyword normal font-variant will be set to normal font.
small-caps - the lowercase letters appear as small caps font.
Examples:

FONT-VARIANT

4, font-weight

Function: used to set the font weight, font generated deep and shallow versions.
Value:
Normal gray - normal
Relative gray - bold, bolder, light, lighter
Gradient Gray - values are as follows: 100, 200, 300, 400 (equivalent to normal), 500, 600, 700 (equivalent to bold), 800, 900.
Examples:

Font weight

5, font-size

Function: control text with various units of measure font size.
Values: There are four numerical methods
Absolute size - with a specific font size font size table defined, you can take one of the following values: xx - small, x-small, small, medium, large, x-large, xx-large. Different fonts have different values.
Relative size - larger, smaller, size is relative to the resulting font size for the purposes of the parent container.
Length - in millimeters (mm), centimeters (cm), inches (in), points (pt), pixels (px), pica (pc), ex (lowercase letter x height) or em (font height) as a measure of unit.
Percentage - the font size relative to the percentage of its parent element.
Example: font size

6, font

Function: shorthand properties, provides all the attributes to set the font shortcut method.
Syntax: (font: 1 font properties font properties font properties 2 ... n)
Value: Font property value of the values listed earlier, you can also set the line spacing property line-height (see text attribute), the contents of the order of: font-style; font-variant; font-weight; font-size; line-height; font-family. Optional part of the property, separated by spaces between the attribute value.
Examples:

FONT






Recommended links:



ASF to AVI



how to fix no mountable file systems mac error



3GP To AVI



DAT to WMV



No comments:

Post a Comment