Cascading Style Sheets
Veelgebruikte codes
» CSS
| Style Sheet Opmaakcodes | |||
|---|---|---|---|
| Attribuut | Omschrijving | Waarden | Voorbeelden |
| background | Bepaalt de achergrondkleur of plaatje | URL, color-name RGB waarde |
{background: #DCDCDC} |
| color | Kleur van de tekst |
color-name RGB waarde |
{color: blue} {color: #0000ff} |
| font-size | Grootte van de tekst | points (pt) inches (in) centimeters (cm) pixels (px) |
{font-size: 12pt} |
| font-family | Bepaalt het lettertype | typeface name font family name |
{font-family: "courier new"} {font-family: monospace} |
| font-variant | Bepaalt grootte van het lettertype | normal small-caps |
{font-variant: small-caps} |
| font-style | Stijl van de tekst (romein of cursief) | normal italic |
{font-style: italic} |
| font-weight | Dikte van het lettertype |
extra-light light demi-light medium demi-bold bold extra-bold |
{font-weight: bold} |
| line-height | Bepaalt de interlinie | points (pt) inches (in) centimeters (cm) pixels (px) percentage (%) |
{line-height: 24pt} |
| text-align | Bepaalt het uitlijnen van de tekst | left center right |
{text-align: right} |
| text-decoration | Versiert de tekst (onderstrepen e.d.) | none underline italic line-through |
{text-decoration: underline} |
| text-indent | Inspringen van de tekst | points (pt) pixels (px) percentage (%) |
{text-indent: 5%} |
| margin-bottom | Bepaalt de ondermarge | points (pt) inches (in) centimeters (cm) pixels (px) |
{margin-bottom: 5pt} |
| margin-left | Bepaalt de linkermarge | points (pt) inches (in) centimeters (cm) pixels (px) |
{margin-left: 30pt} |
| margin-right | Bepaalt de rechtermarge | points (pt) inches (in) centimeters (cm) pixels (px) |
{margin-right: 30pt} |
| margin-top | Bepaalt de bovenmarge | points (pt) inches (in) centimeters (cm) pixels (px) |
{margin-top: 20px} |

