-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDropdown On Mouseover.html
More file actions
110 lines (107 loc) · 2.96 KB
/
Dropdown On Mouseover.html
File metadata and controls
110 lines (107 loc) · 2.96 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dropdown On Mouseover</title>
<style>
table{
border-collapse: collapse;
}
td, th{
border: 1px solid black;
padding: 5px;
}
nav > ul{
display: flex;
}
nav li{
list-style: none;
margin-right: 10px;
padding: 5px;
}
nav li a{
text-decoration: none;
color: black;
}
nav li:hover{
background-color: lightgray;
}
/*Nested Menu Style*/
nav li .dropdown{
display: none;
position: absolute;
background-color: lightyellow;
padding-left: 15px;
}
nav li:hover .dropdown{
display: block;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/HTML5-intro/video.html">Video</a></li>
<li><a href="/Form structure.html">Form </a></li>
<li>
<a href="table.html">Table </a>
<ul class="dropdown">
<li><a href="/HTML5-intro/video.html">Video</a></li>
<li><a href="/Form structure.html">Form </a></li>
<li><a href="table.html">Table </a></li>
<li><a href="/stucture.html">Blog</a></li>
</ul>
</li>
<li><a href="/stucture.html">Blog</a></li>
</ul>
</nav>
</header>
<main>
<h1>HTML Table</h1>
<table>
<caption>Employee Salary Data</caption>
<thead>
<tr>
<th>No.</th>
<th>Full name</th>
<th>Company</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Bill Gates</td>
<td>Microsoft</td>
<td>$1000</td>
</tr>
<tr>
<td>2</td>
<td>Steave Jobs</td>
<td>Apple</td>
<td>$1200</td>
</tr>
<tr>
<td>3</td>
<td>Larry Page</td>
<td>Google</td>
<td>$1100</td>
</tr>
<tr>
<td>4</td>
<td>Mark Jugerbark</td>
<td>Facebook</td>
<td>$1300</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="4">Total Employee : 4</td>
</tr>
</tfoot>
</table>
</main>
</body>
</html>