Professional Documents
Culture Documents
Lecture19 BoxModel
Lecture19 BoxModel
margin
Content height
width
Cumulative Margins
90px
Content Content
40px
50px
Cumulative Margins?
20px
Content
50px?
30px
Content
Cumulative Margins
20px
Content
30px
Margins
collapse
Content
30px
Summary
² Box model – essential to understand
• Prefer box-sizing: border-box
² The * (universal) selector
² Cumulative and collapsing margins
² Content overflow
NEXT:
The background Property