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.

meer info: CSS basic box model
CSS & randen
randen: width & height
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_height_width try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_height_width2
randen: min-width & max-width
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-width
randen: min-height & max-height
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-height
randen: overflow
overflow: visible | hidden | scroll | auto
try it yourself (visible): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_visible try it yourself (hidden): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_hidden try it yourself (scroll): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_scroll try it yourself (auto): https://www.w3schools.com/css/tryit.asp?filename=trycss_overflow_auto
border-width
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-width
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-style
border-color
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-color1
border
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border
padding
padding: padding-top | padding-right | padding-bottom | padding-left;
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_padding_intro try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_padding_sides
margin
margin: margin-top | margin-right | margin-bottom | margin-left;
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_margin_intro try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_margin_sides
border-image
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss3_border-image
box-shadow
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss3_box-shadow3
border-radius
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border_round try it yourself: https://www.w3schools.com/css/css3_borders.asp
Last updated