Sorry, lately I've been working with PHP, and I've noticed something.
Every time I change from to I change the style of that button. Until then I understand it, because the style says "button {...}", but then, even if I put the "input [type = button] {...}", it still does not take the style.
Also, it happens to me that suddenly some things lose their place (I'll leave an image for them to see). I hope you can explain to me why this kind of thing happens.
HTML code in the Navigation bar:
<body>
<div class="Navegacion">
<aside class="nav">
<nav>
<ul>
<li><img src = "img/logo.png"</li>
<li> <a href="nomina1 lobby.html">Inicio</a> </li>
<li> <a href="nomina2 busqueda.html">Registros</a> </li>
<footer id="f"> <a href="../Inicio.php">Cerrar Sesión</a> </footer>
</ul>
</nav>
</aside>
</div>
Navigation Bar CSS Code:
.Navegacion{
color:#000;
font-family: Verdana, "Geneva", sans-serif;
font-variant: small-caps;
width: 15%;
height: 97.5%;
font-size: 90%;
background-color: rgba(200,200,200, 0.5);
position: absolute;
margin:0;
border-radius: 5px;
}
HTML code of the button.
<div class="Confirmaciones">
<label id="Confirmacion">Confirmaciones</label><br><br>
<label>Entrada:</label>
<label><?php echo $row['firmaEntrada']; ?></label><br><br>
<label>Salida:</label>
<label><?php echo $row['firmaSalida']; ?></label><br><br>
<label>Receso:</label>
<label><?php echo $row['firmaReceso']; ?></label>
</div>
<br>
<?php } ?>
<div class="Botones">
<button type="button" name="Enviar"> <a href="promotor registro general.php">Volver</a></button>
</div>
CSS code of the button:
button[type="button"]{
border-radius: 4px;
border:none;
outline: none;
height: 30px;
width: 33%;
left:30%;
background-color: rgba(10,20,70,1);
color:white;
font-family:'Droid Sans', sans-serif;
left: 27%;
position: absolute;
}
button[type="button"]:hover{
background-color: rgba(15,30,80,1);
cursor: pointer;
}
.Confirmaciones{
font-size: 75%;
left:40%;
top: 60%;
position: absolute;
}
Here you put the button on a label that says "Exit:
Here you put a lighter color of the gray outside the div, they are like extra 15px that are marked.
That's the way it should be.