Een overzicht van de CSS elementen die gebruikt kunnen worden in een stylesheet van een webpagina.
background color image repeat attachment
Voorbeeld:
background: white url(tegel.jpg) repeat fixed;
background-attachment fixed of scroll
Voorbeeld:
background-attachment: fixed;
background-color kleur(waarde) of transparent
Voorbeeld:
background-color: yellow;
background-image url(url van de afbeelding)
Voorbeeld:
background-image: url(http://www.website.com/plaatje.gif)
background-repeat no-repeat of repeat of repeat-x of repeat-y
Voorbeeld:
background-repeat: repeat;
naar boven | naar stijl | naar kleur
border width style color
Voorbeeld:
border: 3px dashed blue;
border-bottom width style color
Voorbeeld:
border-bottom: 3px dashed blue;
border-left width style color
Voorbeeld:
border-left: 3px dashed blue;
border-right width style color
Voorbeeld:
border-right: 3px dashed blue;
border-top width style color
Voorbeeld:
border-top: 3px dashed blue;
border-color kleur(waarde)
Voorbeeld:
border-color: red;
border-bottom-color kleur(waarde)
Voorbeeld:
border-bottom-color: red;
border-left-color kleur(waarde)
Voorbeeld:
border-left-color: red;
border-right-color kleur(waarde)
Voorbeeld:
border-right-color: red;
border-top-color kleur(waarde)
Voorbeeld:
border-top-color: red;
border-style kaderstijl
Voorbeeld:
border-style: solid;
border-bottom-style kaderstijl
Voorbeeld:
border-bottom-style: solid;
border-left-style kaderstijl
Voorbeeld:
border-left-style: solid;
border-right-style kaderstijl
Voorbeeld:
border-right-style: solid;
border-top-style kaderstijl
Voorbeeld:
border-top-style: solid;
border-width kaderdikte
Voorbeeld:
border-width: 2px;
border-bottom-width kaderdikte
Voorbeeld:
border-bottom-width: 2px;
border-left-width kaderdikte
Voorbeeld:
border-left-width: 2px;
border-right-width kaderdikte
Voorbeeld:
border-right-width: 2px;
border-top-width kaderdikte
Voorbeeld:
border-top-width: 2px;
naar boven | naar stijl | naar kleur
color kleur(waarde)
Voorbeeld:
color: black;
naar boven | naar stijl | naar kleur
cursor vorm
Voorbeeld:
cursor: default;
naar boven | naar stijl | naar kleur
font style weight size family
Voorbeeld:
font: normal 300 14pt "Times New Roman";
font-family lettertype
Voorbeeld:
font-family: tahoma,arial,"sans serif";
font-size grootte
Voorbeeld:
font-size: 12pt;
font-style normal of italic
Voorbeeld:
font-style: normal;
font-weight dikte
Voorbeeld:
font-weight: 600;
naar boven | naar stijl | naar kleur
height waarde, percentage of auto
Voorbeeld:
height: 120%;
naar boven | naar stijl | naar kleur
letter-spacing waarde, auto of normal
Voorbeeld:
letter-spacing: normal;
naar boven | naar stijl | naar kleur
line-height waarde, percentage of normal
Voorbeeld:
line-height: 140%;
naar boven | naar stijl | naar kleur
list-style type position image
Voorbeeld:
list-style: square inside none;
list-style-image url of none
Voorbeeld:
list-style-image: none;
list-style-position inside of outside
Voorbeeld:
list-style-position: inside;
list-style-type opsomteken
Voorbeeld:
list-style-type: circle;
naar boven | naar stijl | naar kleur
margin waarde of auto
Voorbeeld:
margin: 50px;
margin-bottom waarde of auto
Voorbeeld:
margin-bottom: 50px;
margin-left waarde of auto
Voorbeeld:
margin-left: 50px;
margin-right waarde of auto
Voorbeeld:
margin-right: 50px;
margin-top waarde of auto
Voorbeeld:
margin-top: 50px;
naar boven | naar stijl | naar kleur
padding waarde
Voorbeeld:
padding: 20px;
padding-bottom waarde
Voorbeeld:
padding-bottom: 20px;
padding-left waarde
Voorbeeld:
padding-left: 20px;
padding-right waarde
Voorbeeld:
padding-right: 20px;
padding-top waarde
Voorbeeld:
padding-top: 20px;
naar boven | naar stijl | naar kleur
text-align center, left, right of justify
Voorbeeld:
text-align: left;
text-decoration line-through, overline, underline of none
Voorbeeld:
text-decoration: none;
text-indent afstand of percentage
Voorbeeld:
text-indent: 100px;
text-transform capitalize, lowercase, uppercase of none
Voorbeeld:
text-transform: uppercase;
naar boven | naar stijl | naar kleur
width waarde, percentage of auto
Voorbeeld:
width: 100%;
naar boven | naar stijl | naar kleur
C.A. de Keijzer -- Webmastertools