menu desplegable se esconde detras del slider
Publicado por Lorena (1 intervención) el 22/05/2019 00:39:38
Hola gente, soy novata en esto de html y me esta haciendo la vida imposible la etiqueta nav y el slider, porque cada vez q paso el puntero por encima del menu desplegable se esconde detras de lasimagenes del slider, nose que puede ser.
este el mi html:
este es mi css:
este el mi 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
<nav class="navegador">
<div class="topnav" id="myTopnav">
<a href="#" class="hvr-box-shadow-outset ">Pacientes </a>
<a href="#" class="hvr-box-shadow-outset ">Profesionales</a>
<div class="dropdown">
<button class="dropbtn">Especialidades
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content ">
<a href="#" >KineFemale</a>
<a href="#">Unidad del dolor crónico</a>
<a href="#">Telerehabilitación</a>
<a href="#">Músculo-Esquelética</a>
<a href="#">Kinesiología Tercera Edad</a>
<a href="#">Kinesiología Deportiva</a>
</div>
</div>
<a href="#" class="hvr-glow">Obra social</a>
<a href="#"class="hvr-glow">¿Quienes somos?</a>
<a href="#"class="hvr-glow">Ingresar</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a>
</div>
</nav>
este es mi css:
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
.topnav {
background-color: rgba(56, 173, 169,0.5);
overflow: hidden;
margin-bottom: 10px;
z-index: 0!important;
}
/* Style the links inside the navigation bar */
.topnav a {
float: left;
display: block;
z-index: 0!important;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
font-family: 'Roboto condesed',sans-serif;
}
/* Add an active class to highlight the current page */
.active {
background-color: #4CAF50;
color: #fdb4c7;
}
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
display: none;
}
/* Dropdown container - needed to position the dropdown content */
.dropdown {
float: left;
overflow: visible;
z-index: 0;
}
/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
font-size: 17px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: 'Roboto condesed',sans-serif;
margin: 0;
}
/* Style the dropdown content (hidden by default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 0!important;
}
/* Style the links inside the dropdown */
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
background-color: rgba(56, 173, 169,0.2);
z-index: 0!important;
}
/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
background-color: #fdb4c7;
color: black;
z-index: 0!important;
}
/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
background-color: #fdb4c7;
color: black;
z-index: 0!important;
}
/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
display: block;
z-index: 0!important;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.topnav a:not(:first-child), .dropdown .dropbtn {
display: none;
}
.topnav a.icon {
float: right;
display: block;
}
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive a.icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
.topnav.responsive .dropdown {float: none;}
.topnav.responsive .dropdown-content {position: relative;}
.topnav.responsive .dropdown .dropbtn {
display: block;
width: 100%;
text-align: left;
}
}
Valora esta pregunta


0