CSS Box Model |
The CSS box model module defines the rectangular boxes, including their padding and margin, that are generated for elements and laid out according to the visual formatting model. |
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model |
Box width |
width + padding-left + padding-right + border-left + border-right |
https://css-tricks.com/the-css-box-model/ |
Box height |
height + padding-top + padding-bottom + border-top + border-bottom |
https://css-tricks.com/the-css-box-model/ |
Content |
The content of the box, where text and images appear |
https://www.w3schools.com/css/css_boxmodel.asp |
Padding |
Clears an area around the content. The padding is transparent |
https://www.w3schools.com/css/css_boxmodel.asp |
Border |
A border that goes around the padding and content |
https://www.w3schools.com/css/css_boxmodel.asp |
Margin |
Clears an area outside the border. The margin is transparent |
https://www.w3schools.com/css/css_boxmodel.asp |