Main content size of this chapter
- Font-size: Relative | Absolutely
- The size of the relative (em%) font changes depending on the size of the parent font
- Absolute (px)
Font
- Font-family: Fonts | Word Set
Color
- Color: Yan Name | Hex | Rgb
Thickness
- Font_weight:normal (default) | Bold (bold) | Bolder (thicker) | Lighter (finer) | 100~900
Style
- Font-style:normal | Italic (Italic) | Oblique (tilt)
- Font-variant:normal (default) | Small-caps (small capital letters)
Center horizontally
- Text-align:left | Right | Center | Justify (Justify)
- This style works only on block-level elements
Center vertically
- Vertical-align:baseline | Sub | Super | Top | Text-top | Middle | Bottom | Text-bottom | Absolute value
Row height
- Line-height: Absolute Value
Indent 2 characters in the first line
Word spacing
- Word-spacing: Absolute Value
- Relative value when the reference value is the size of the font
- Does not work for Chinese characters without spaces
Letter Spacing
- Letter-spacing: Absolute Value
- Relative value when the reference value is the size of the font
Uppercase and lowercase
- Text-transform:capitalize (capital Letter) | Uppercase (All caps) | lowercase (all lowercase) | None (Default)
Crossed
- Text-decoration:underline (underline) | Overline (dash) | Line-through (middle dash) | Bink (flashing) | None (Default)
- The underline of a element can be removed when none is true
CSS Text Style properties