Beruflich Dokumente
Kultur Dokumente
• The syntax is made-up of three parts: selector, property, and value. The whole structure looks like
this:
• Font-style
• Possible values for this property are: italic, normal, and oblique
• Font-weight
• Refers to how thick each letter will become. Its values are: normal, lighten, bold, and bolder
• You may also use multiples of 100, where 100 is the lightest and 900 is the boldest (400 is the default)
Colors
Chapter 4 – Experimenting with Fonts and Colors
• It refers to the color of the text
• Its value can be any color, as long as it can be reproduced by the computer
• The CSS rainbow is made up of 16,777,216 colors
Colors in CSS
• By name
• There are 16 colors that can be encoded by name in CSS
• Together with the font properties, you can control the appearance of the textual content through
these text properties:
• Text-align
• Whose values are: left, right, center, and justify.
• Text-decoration
• Whose values are: overline, line-thorugh, underline, and none
• Text-transform
• Whose values are: capitalize, uppercase, lowercase, and none
Text in CSS
• In addition , selection may be styled with the use of the following properties:
• Letter-spacing
• Refers to the space between letters, whose values are: normal, or _em
• Word-spacing
• Refers to the space between word, whose values are: normal, or _em
• Line-height
• Refers to the space between lines, whose values are: normal, or _% _em
Special Characters and Comment Tags
Chapter 4 – Experimenting with Fonts and Colors