forked from Oluwasetemi/css-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (67 loc) · 1.4 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AltSchool V3 CSS</title>
<style>
header {
height: min-content;
}
header h1 {
font-size: 2rem;
text-align: start;
display: inline-block;
width: 30%;
& a {
text-decoration: none;
color: unset;
}
}
nav {
display: inline-block;
width: 60%;
margin-inline-start: auto;
height: 100%;
text-align: end;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
ul li {
display: inline-block;
margin-left: 0;
&+li {
margin-left: 16px;
}
}
</style>
</head>
<body>
<!-- Ways to Apply CSS to HTML -->
<!-- 1. attribute (style) inline-->
<!-- 2. tag (style) internal-->
<!-- 3. css file via link tag external -->
<header>
<h1><a href="#">AltSchool V3 CSS class</a></h1>
<nav class="global">
<ul>
<li>
<a href="./index.html">Home</a>
</li>
<li>
<a href="./fundamentals.html">Fundamentals</a>
</li>
<li>
<a href="./rendering.html">Rendering</a>
</li>
<li>
<a href="https://github.com/Oluwasetemi/css-v3" target="_blank">Class Notes</a>
</li>
</ul>
</nav>
</header>
</body>
</html>