forked from you-dont-need/You-Dont-Need-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu-1.html
143 lines (138 loc) · 4.7 KB
/
menu-1.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>No JS Demo</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
/* CSS styles */
/* Example by Antoni Putra at https://codepen.io/antoniputra/pen/BzyWmb */
.menu {
display: block;
z-index: 999999;
}
.menu li {
display: inline-block;
position: relative;
}
.menu li.dropdown:hover > .submenu {
display: block;
}
.menu li a {
display: block;
padding: 12px 8px;
background: #ccc;
}
.menu li.dropdown > a::after {
content: "\e259";
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
margin-left: 8px;
font-size: 10px;
}
.menu li a::before {
content: "\e179";
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
margin-right: 8px;
}
.menu li a:hover {
background: grey;
}
.menu .submenu {
display: none;
}
.submenu {
margin: 0px;
padding: 0px;
position: absolute;
left: 0px;
list-style-type: none;
display: block;
width: 200px;
z-index: 9;
}
.submenu li {
display: block;
}
.submenu li a {
display: block;
background: #999;
color: #fff;
padding: 8px 6px;
margin-bottom: 1px;
}
.menu .submenu > li.dropdown:hover > .submenu {
display: block;
}
.menu .submenu .submenu {
position: absolute;
left: 200px;
top: 0px;
}
.submenu li.dropdown > a:after {
content: "\e258";
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
margin-left: 8px;
font-size: 10px;
}
</style>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<ul class="menu">
<li><a href="">Home</a></li>
<li class="dropdown">
<a href="">Service</a>
<ul class="submenu">
<li>
<a href="">satu</a>
</li>
<li class="dropdown">
<a href="">dua</a>
<ul class="submenu">
<li class="dropdown">
<a href="">jeruh dua</a>
<ul class="submenu">
<li>
<a href="">mentok satu</a>
</li>
<li class="dropdown">
<a href="">mentok dua</a>
<ul class="submenu">
<li>
<a href="">njedok prend satu</a>
</li>
<li>
<a href="">njedok prend dua</a>
</li>
<li>
<a href="">njedok prend tiga</a>
</li>
</ul>
</li>
<li>
<a href="">mentok satu</a>
</li>
</ul>
</li>
<li>
<a href="">jeruh satu</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="">Other</a></li>
</ul>
</body>
</html>