-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshortTask.html
More file actions
86 lines (52 loc) · 1.65 KB
/
Copy pathshortTask.html
File metadata and controls
86 lines (52 loc) · 1.65 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Short Task</title>
<meta charset="utf-8">
<meta name="flexbox" content="two column layout">
<style>
:root{--color: lightblue;
--color2: lightgray;
--color3: maroon;
--color4:blue;
--color5:lightpink}
#wrapper { margin:0 auto; border: 1px solid black; display: flex; width:80%; min-width: 860px; flex-wrap: wrap; }
header { color:var(--color4); background-color: var(--color); width:100%;}
a:link{text-decoration: none; color: var(--color3)
}
a:visited{
color: var(--color3)
}
ul{
list-style-type: none;
}
nav { background-color: var(--color5); flex-shrink: 0; flex-basis: 200px;}
footer{ color:var(--color4); background-color: var(--color2); width:100%;}
main { flex-grow: 1; color: var(--color3)}
</style>
</head>
<body>
<div id="wrapper">
<header>
<h1>Two-column layout using flexbox</h1>
</header>
<nav>
<ul>
<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.facebook.com">Facebook</a></li>
<li><a href="http://www.youtube.com">Youtube</a></li>
</ul>
</nav>
<main>
<section>
<h2>A section in a document, explaining what WWF is</h2>
<p>A paragraph is marked up as follows:</p>
<p>This is some text in a paragraph.</p>
<p>Browsers automatically add some space (margin) before and after each p element.</p>
<p>The margins can be modified with CSS (with the margin properties).</p>
</section>
</main>
<footer>copyright© 2019 HTML&CSS CNIT 132 </footer>
</div>
</body>
</html>