Prepared by: Anthony Larrain
Font Manipulations
font-family
- Specifies the font.- If the font name has more than one word separated by a space you need to enclose the font name in quotes.
- Can specify more than one font as a fallback in case the system does not support the first font. The line should end with a generic font family, ie (sans-serif, serif, fantasy ..)
- Multiple font values must be separated by a comma.
color
- Specifies the color.font-size
- Controls the size.- The value of the
font-size
property is a number and a unit. - Unit
px
stands for pixels. - Unit
em
stands for m-units. - 1em is the size of the relevent font.
- 1.2em would be 20% bigger than the current font.
font-style
- Specifies the style of the font.font-weight
- Specifies the amount of bold.
Example
Example
A list of CSS color names and Hex values
Example
Example
Design Tips
- Use
em
units for font size. - Avoid long lines of itallized text.
- For long lines of text use san-serif fonts