Skip to content

Commit 03d702c

Browse files
committed
added box model to basic css step page
1 parent 3206173 commit 03d702c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sites/en/frontend/basic_CSS.step

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ When you save and refresh your browser, you should see the styles you added:
9595
<img src='img/hello_style.png'>
9696

9797
The `type` and `media` attributes inside of the `<style>` tag give the browser more context for how to deal with the included information. In this case, we're telling it that the type is HTML/CSS, and that that it's being displayed on a screen (as opposed to `media=\"print\"`, which is usually specially styled so it looks reasonable when printed.
98+
99+
To visualize the relations between elements of Content, Padding, Border, and Margin, otherwise known as the CSS Box Model, here is an example of how this fits in:
100+
101+
<img src='img/boxmodel.png'>
102+
98103
MARKDOWN
99104
end
100105

0 commit comments

Comments
 (0)