-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut2.html
59 lines (47 loc) · 1.29 KB
/
tut2.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
<!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>navbar</title>
<link rel="stylesheet" href="tut2css.css">
<style>
.navbar {
z-index: 1;
border-radius: 30px;
background-color: rgb(0, 0, 0);
}
.navbar ul:hover{background-color: black;}
body :hover{
background-color: black;
}
.navbar {
overflow: auto;
}
.navbar li {
float: left;
list-style: none;
margin: 10px 19px;
}
.navbar a {
margin: 3px 3px;
padding: 3px;
text-decoration: none;
color: rgb(255, 255, 255);
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<header>
<nav class="navbar">
<ul>
<li> <a href="#">about</a></li>
<li> <a href="#">class</a></li>
<li> <a href="#">section</a></li>
<li> <a href="#">macbook</a></l> </ul>
</nav>
</header>
</body>
</html>