04. randen en spaties

terminologie

border

Elke kader heeft een border, een rand, zichtbaar of onzichtbaar (0px breed)

margin

De margin bevindt zich langs de buitenkant van de rand van de kader. De breedte van de margin zorgt voor een witruimte tussen bijvoorbeeld twee kaders onderling.

padding

padding is de ruimte binnenin het kader, te tellen vanaf de kant tot waar de inhoud binnenin het kader begint. Het toevoegen van witruimte binnenin het kader verhoogt de leesbaarheid van een tekst binnenin.

intro in CSS basic box model

meer info: CSS basic box modelarrow-up-right

CSS & randen

randen: width & height

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_height_widtharrow-up-right try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_height_width2arrow-up-right

randen: min-width & max-width

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-widtharrow-up-right

randen: min-height & max-height

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-heightarrow-up-right

randen: overflow

overflow: visible | hidden | scroll | auto

try it yourself (visible): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_visiblearrow-up-right try it yourself (hidden): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_hiddenarrow-up-right try it yourself (scroll): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_scrollarrow-up-right try it yourself (auto): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_autoarrow-up-right

border-width

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-widtharrow-up-right

border-style

border-style: dotted | dashed | solid (=standaardwaarde) | double | groove | ridge | inset | outset | none | hidden;

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-stylearrow-up-right

border-color

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-color1arrow-up-right

border

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_borderarrow-up-right

padding

padding: padding-top | padding-right | padding-bottom | padding-left;

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_padding_introarrow-up-right try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_padding_sidesarrow-up-right

margin

margin: margin-top | margin-right | margin-bottom | margin-left;

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_margin_introarrow-up-right try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_margin_sidesarrow-up-right

border-image

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss3_border-imagearrow-up-right

box-shadow

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss3_box-shadow3arrow-up-right

border-radius

try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border_roundarrow-up-right try it yourself: https://www.w3schools.com/css/css3_borders.asparrow-up-right

Last updated