This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
forked from JeffCohen/html-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homework.html
114 lines (89 loc) · 1.86 KB
/
homework.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<!--
Submission from Andrew Thomas ([email protected])
-->
<html>
<head>
<title>My Favorite Things</title>
<!-- <link rel="stylesheet" type="text/css" href="styles.css"> -->
<style type="text/css">
h1,h2,p,li {
font-family: Arial,sans-serif;
}
h1 {
font-size: 32px;
color: white;
}
h2 {
font-size: 24px;
color: #AAAAAA;
}
p,li {
font-size: 16px;
}
body {
margin-top: 20px;
}
section {
margin-left: auto;
margin-right: auto;
width: 960px;
}
.divider {
margin: -1.25em auto -.25em auto;
height: 4px;
background-color: #AAAAAA;
}
.bordered {
margin-top: 20px;
border: 1px solid blue;
padding: 20px 20px 20px 20px;
}
#heading {
width: 940px;
height: 80px;
line-height: 80px;
padding-left: 20px;
background-color: #001764;
}
#inline li {
display: inline;
}
</style>
</head>
<body>
<section id="heading">
<h1>My Favorite Things</h1>
</section>
<section>
<h2>This page's content is 960 pixels wide. It is centered on the page with a 20 pixel margin at the top. The heading above is white text on a dark blue background. The browser shows this page's title in the tab itself, "My Favorite Things."</h2>
</section>
<section>
<p>Here's a numbered list:</p>
<div class="divider"></div>
<ol>
<li>Hockey games</li>
<li>Cookies</li>
<li>Computers</li>
</ol>
</section>
<section>
<p>Here's a bullet list with blue border and 20 pixels of space inside the box:</p>
<div class="divider"></div>
<ul class="bordered">
<li>Hockey games</li>
<li>Cookies</li>
<li>Computers</li>
</ul>
</section>
<section>
<p>And here's a simple horizontal list:</p>
<div class="divider"></div>
<ul id="inline" class="bordered">
<li>Hockey games</li>
<li>Cookies</li>
<li>Computers</li>
</ul>
</section>
</body>
</html>