I have this css code:
/*menu*/
.dropdownmenu ul, .dropdownmenu li {
margin: 0;
padding: 0;
position: relative;
left:5%;
width:100%;
}
.dropdownmenu ul {
background: gray;
list-style: none;
width: 100%;
font-size: 18px;
}
.dropdownmenu li {
float: left;
position: relative;
width:20%;
}
.dropdownmenu a {
background: #30A6E6;
color: #FFFFFF;
display: block;
font: bold 12px/20px sans-serif;
padding: 10px 25px;
text-align: center;
text-decoration: none;
-webkit-transition: all .25s ease;
-moz-transition: all .25s ease;
-ms-transition: all .25s ease;
-o-transition: all .25s ease;
transition: all .25s ease;
}
.dropdownmenu li:hover a {
background: #000000;
}
.submenu {
left: 0;
opacity: 0;
position:absolute;
visibility: hidden;
z-index: 1;
width: 100%;
}
li:hover ul.submenu {
opacity: 1;
visibility: visible;
}
.submenu li {
float: none;
width: 100%;
}
.submenu a:hover {
background: #DF4B05;
}
.submenu a {
background-color:#000000;
}
And it shows me the menu with the submenu hidden as it should be, but between the menu and the rest of the content there is a white space.
<p>
<h1>
CLIENTES</h1>
</p>
<label>Mostrar
<select>
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select>
registros por pagina</label>
<a class="btn btn-primary pull-right" href="../../gestionweb/views/modules/nuevoCliente.php">Agregar</a>
<table>
<caption>Listado de clientes activos</caption>
<tr> <th>CUIT</th> <th>Nombre y Apellido</th> <th>Celular</th>
<th>Direccion</th> <th>Deuda Actual</th> <th>Accion</th>
</tr>
<?php
$cliente=new Cliente();
$cliente::Listar();
foreach ($cliente as $C){?>
<tr>
<td><?php echo $C->CUIT; ?></td>
<td><?php echo $C->nombre; ?></td>
<td><?php echo $C->celular; ?></td>
<td><?php echo $C->direccion; ?></td>
<td><?php echo $C->celular; ?></td>
<td>
<a class="btn btn-warning" href="?c=cliente&a=Crud&id=<?php echo $r->id; ?>">Editar</a>
<a class="btn btn-danger" onclick="javascript:return confirm('¿Seguro de eliminar este registro?');" href="?c=cliente&a=Eliminar&id=<?php echo $r->id; ?>">Eliminar</a></td>
</tr>
<?php } ?>
</table>
Any suggestions?