-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.html
62 lines (48 loc) · 1.11 KB
/
navbar.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#news">Climate</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
</div>
<h1>test heading</h1>
<style>
h1{
size: 400px;
text-align: center;
}
/* Add a black background color to the top navigation */
.topnav {
background-color: rgb(100, 6, 6);
overflow: hidden;
}
/* Style the links inside the navigation bar */
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
/* Change the color of links on hover */
.topnav a:hover {
background-color: red;
color: black;
}
/* Add a color to the active/current link */
.topnav a.active {
background-color: rgb(11, 0, 0);
color: rgb(170, 95, 95);
}
</style>
</body>
</html>