This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
web_design:horario:css [2021/10/10 19:39] mag created |
web_design:horario:css [2023/08/16 09:33] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ===== Cascading Style Sheets (CSS) ===== | ===== Cascading Style Sheets (CSS) ===== | ||
| ==== Setup ==== | ==== Setup ==== | ||
| Line 39: | Line 39: | ||
| }</ | }</ | ||
| + | ==== Alignment ==== | ||
| + | * There are four types of text alignment. You've used < | ||
| + | < | ||
| + | * Did you add this line inside the brackets on its own line? Did it work as expected? If it didn' | ||
| + | ==== Italic ==== | ||
| + | * Now make the < | ||
| + | < | ||
| + | font-style: italic; | ||
| + | }</ | ||
| + | * If you had more than one < | ||
| + | * Try adding another < | ||
| + | |||
| + | ==== Font Family ==== | ||
| + | * Let's modify the heading. | ||
| + | * We can change the font family by adding the same code as the attribute. | ||
| + | < | ||
| + | font-family: | ||
| + | }</ | ||
| + | |||
| + | ==== Font Size ==== | ||
| + | * Let's make the heading really big. | ||
| + | < | ||
| + | |||
| + | ==== Underline, Small Caps, Line Height, Shadow ==== | ||
| + | * Any attribute that works in HTML can be used in CSS. Let's complete the heading using the same attributes as before. | ||
| + | < | ||
| + | font-family: | ||
| + | font-size: 3em; | ||
| + | text-decoration: | ||
| + | font-variant: | ||
| + | line-height: | ||
| + | text-shadow: | ||
| + | }</ | ||
| + | * Notice that by placing each style definition on a separate line and indenting them makes it very clear which element is targeted and what styles they will use. If you haven' | ||
| + | [[web_design: | ||