Skip to content

Commit 4b8bff8

Browse files
committed
Ch. 33 - CSS Theory jonasschmedtmann#3: The CSS Box Model
1 parent 29a36c1 commit 4b8bff8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Loading

starter/03-CSS-Fundamentals/notes/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,21 @@ <h2>Ch. 32 CSS Theory #2: Inheritance and the Universal Selector</h2>
165165
can conflict with other selectors.
166166
</p>
167167
</article>
168+
169+
<article>
170+
<h2>Ch. 34 CSS Theory #3: The CSS Box Model</h2>
171+
<p>
172+
The box model defines how elements are displayed, and sized on a webpage.
173+
</p>
174+
<img src="img/element_height_and_width_calculation.png">
175+
<ul>
176+
<li><strong>Content Area</strong>: text, images, etc.</li>
177+
<li><strong>Padding</strong>: Invisible space around the inside of the element.</li>
178+
<li><strong>Border</strong>: A line around the eleent, still inside the element.</li>
179+
<li><strong>Margin</strong>: Space outside of the element, between elements.</li>
180+
<li><strong>Fill Area</strong>: Its the content area and padding area. This area gets filled with a background color or image.</li>
181+
</ul>
182+
</article>
168183
</article>
169184
</body>
170185
</html>

0 commit comments

Comments
 (0)