Skip to content

Commit f488df3

Browse files
committed
finished the margin chapter
1 parent 9eb5b67 commit f488df3

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

home.html

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h1>CSS Test Suite Main Page</h1>
2222
<a href="box_model.html">Box Model</a><br />
2323
<a href="border.html">Border</a><br />
2424
<a href="outline.html">Outline</a><br />
25+
<a href="margin.html">Margin</a><br />
2526

2627
</body>
2728

margin.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!Doctype html>
2+
<html>
3+
4+
<head>
5+
6+
<style type="text/css">
7+
8+
p.margin
9+
{
10+
background-color:yellow;
11+
margin-top:100px;
12+
margin-bottom:100px;
13+
margin-right:50px;
14+
margin-left:50px;
15+
}
16+
17+
</style>
18+
19+
<title>CSS Margin</title>
20+
21+
</head>
22+
23+
<body>
24+
25+
<h1>CSS Margin</h1>
26+
27+
<h4>Margins go between the border and the outline. You may use negative values to overlap content.</h4>
28+
29+
<p>paragraph with no specified margins.</p>
30+
31+
<p class="margin">paragraph with specified margins.</p>
32+
33+
</body>
34+
35+
</html>

0 commit comments

Comments
 (0)