CSS2 Standard Box Model
Standard rendering properties that work in CSS2
- Width: 50%
- Padding Total: 20% (10% on all sides)
- Border: 4px (2 + 2)
- Margin: top/bottom 30px, left/right "auto"
To begin, we will examine two <article> elements below by exploring their properties. You will learn how the box model can be rendered with both CSS2 and CSS3.
TIP: Right-click the padding area of these boxes to "inspect the element" in Google Chrome or Firefox. Find the box model visual tool and hover over it to see the element's properties highlighted in the viewport display.