Skip to content

Commit 640c033

Browse files
committed
Add code for tutorial 42
1 parent 1c79b28 commit 640c033

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

Diff for: 42/root/index.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title></title>
5+
<link rel="stylesheet" href="style.css">
6+
</head>
7+
<body>
8+
<!-- <section>
9+
10+
</section> -->
11+
12+
<div id="container">
13+
<div id="main">
14+
<p>Blah blah blah</p>
15+
</div>
16+
</div>
17+
18+
<footer id="footer">
19+
20+
</footer>
21+
</body>
22+
</html>

Diff for: 42/root/style.css

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
html, body {
7+
height: 100%;
8+
}
9+
10+
#container {
11+
min-height: 100%;
12+
}
13+
14+
#main {
15+
overflow: auto;
16+
padding-bottom: 100px;
17+
background-color: red;
18+
height: 2000px;
19+
}
20+
21+
#footer {
22+
background-color: #000;
23+
position: relative;
24+
height: 100px;
25+
margin-top: -100px;
26+
clear: both;
27+
}

0 commit comments

Comments
 (0)