-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTask7.html
96 lines (82 loc) · 1.59 KB
/
Task7.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
<!DOCTYPE html>
<html>
<head>
<style>
/* Styles for the first menu */
#menu1 {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: gray;
}
#menu1 li {
float: left;
border-right: 1px solid blue;
}
#menu1 li:last-child {
border-right: none;
}
#menu1 li a {
display: block;
color: blue;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
#menu1 li a:hover:not(.active) {
background-color: gray;
}
#menu1 .active {
background-color: rgb(44, 28, 28);
color: white;
}
/* Styles for the second menu */
#menu2 {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: lightblue;
font-weight: bold;
}
#menu2 li a {
display: block;
color: darkblue;
padding: 8px 16px;
text-decoration: none;
}
#menu2 li {
text-align: center;
}
#menu2 li:last-child {
border-bottom: none;
}
#menu2 li a.active {
background-color: yellow;
color: white;
}
#menu2 li a:hover:not(.active) {
background-color: lightblue;
color: white;
}
</style>
</head>
<body>
<!-- First Menu -->
<ul id="menu1">
<li><a class="active" href="#home">Home</a></li>
<li><a href="#Java">Java</a></li>
<li><a href="#HTML">HTML</a></li>
<li><a href="#CSS">CSS</a></li>
</ul>
<!-- Second Menu -->
<ul id="menu2">
<li><a class="active" href="#home">Home</a></li>
<li><a href="#Java">Java</a></li>
<li><a href="#CSS">CSS</a></li>
<li><a href="#HTML">HTML</a></li>
<li><a href="#Bootstrap">Bootstrap</a></li>
</ul>
</body>
</html>