-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_layout.html
99 lines (71 loc) · 1.51 KB
/
page_layout.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
<html>
<head>
<title>Page Layout</title>
<style>
header {
position: fixed;
background-color: #bbbbbb;
top: 0px;
left: 0px;
width: 100%;
height: 20px;
}
nav {
margin-top: 20px;
margin-bottom: 0px;
background-color: green;
}
nav li {
display: inline;
}
section {
float: left;
width: 20%;
height: 500px;
background-color: blue;
color: white;
}
aside {
float: left;
width: 80%;
height: 500px;
background-color: red;
}
footer {
clear: both;
background-color: yellow;
}
body {
background-color: black;
margin: 0; /* Reset margin */
padding: 0; /* Reset padding */
}
</style>
</head>
<body>
<nav>
<a href="index.html"> home</a> <a href="Basic_Table.html"> Basic Table</a> <a href="Lists.html">
</nav>
Lists</a> <a href="media.html"> media</a> <a href="blocking.html"> blocking</a> <a href="Formatting.html"> Formatting</a>
<header>
A header that stays stuck to the top.
</header>
<nav>
<ul>
<li>About</li>
<li>Papers</li>
<li>Donate</li>
</ul>
</nav>
<section>
This would be a good place for a table of contents
</section>
<aside>
This is the main content area
<img src="https://runestone.academy/ns/books/published/webfundamentals/_images/img_sem_elements.gif" />
</aside>
<footer>
Copyright Area, Contact Us.
</footer>
</body>
</html>