1
respuesta

hover y active

header{
    background-color: #BBBBBB;
    padding: 20px 0px;
}
.box{
    width: 940px;
    position: relative;
    margin: 0 auto; 
}
nav{
 position: absolute;
 top: 40%;   
 right: 30%;
}
nav li {
    display: inline;
    margin: 0 0 0 40px;

}
nav a{

        text-transform: capitalize;
        color:         #000000;
        font-weight: 900;
        font-size: 25px;
        text-decoration: none;

}
nav a:hover{
    color:#FFFFFF;
    text-decoration: underline;

}
nav a:active{
    color: #c78c19;
    text-decoration: underline;
}
.products{
    padding: 50px;
    width: 940px;
    position: relative;
    margin: 0 auto; 
}



.products li{
    display: inline-block;
    text-align: center;
    width: 30%;
    vertical-align: top;
    margin:0 1.5% ;
    padding: 30px 20px ;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 20px;
}
.products li:hover{
    border-color: rgb(151, 150, 150);

}
.products li:active{
    border-color: #c78c19;
}

.products h2{
    font-size: 25px;
    font-weight: 900;
}
.products li:hover h2{
    font-size: 30px;
}
.description{
    font-size: 18px;
}
.price{
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}
1 respuesta

Hola Mariana, espero que esté bien.

Gracias por compartir tu código con nosotros, he probado aquí y el resultado ha sido muy bueno.

Si tienes alguna pregunta sobre el contenido de los cursos, estaremos aquí para ayudarte.

Si este post te ayudó, por favor, marca como solucionado ✓. Continúa con tus estudios