##The Box Model
- every element on a web page is a box of content wrapped in three outer layers
- margin: outermost layer, this is transparent and used for spacing
- border: middle layer, this is a visible, styleable rectangular border
- padding: inner layer, this is transparent but colored by the
background-color
of an element; it is used to create spacing between the border of an element and its inner content - You can individually style each rectangular side of
margin
,border
orpadding
- You can change how an element's width/height is calculated in relation to its box model using the
box-sizing
property - You can view a representation of the box model of any element in Chrome Dev Tools
- You round the corners of your rectangular
border
with theborder-radius
property