04. randen en spaties
Last updated
Last updated
Elke kader heeft een border
, een rand, zichtbaar of onzichtbaar (0px breed)
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
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
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
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-width
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-height
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
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-width
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
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border-color1
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss_border
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-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
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss3_border-image
try it yourself: https://www.w3schools.com/css/tryit.asp?filename=trycss3_box-shadow3
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