I am starting to learn to develop web pages and I have a problem with CSS that I can not solve.
I have a submenu that I can not show when I mouse over the first list item
of the menu
This is my code:
<ul>
<li><a href="bitacora.php">Tickets</a></li>
<ul>
<li><a href="ticketnuevo.php">Nuevo Ticket</a></li>
</ul>
<li><a href="pingsrv.php">Probar Conexion</a></li>
</ul>
This is my CSS, but I want to define these styles that are unique to the "menu" .
ul {
/*Quita el simbolo de la lista (cuadro, punto, numero)*/
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #377ADE;
}
li {
/*hace que las pestañas se alinien hacia la izquierda*/
float: left;
}
li a {
display: block;
/*color del link o texto*/
color: white;
text-align: center;
/*El primero determina el largo, el segundo que tan separados estan*/
padding: 12px 15px;
text-decoration: none;
}
/*Cuando se pasa el mouse por envima cambia de color*/
li a:hover {
background-color: #FF0049;
text-decoration: underline;
}
/*Esconde el submenu ul */
ul ul {
display: none;
}