HTML:
#grad1 {
margin-left: 25%;
height: 216px;
width: 599px;
background-image: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,1));
border-radius:10px;
}
#grad1:hover {
margin-left: 25%;
height: 216px;
width: 599px;
background-image: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
border-radius:10px;
}
@media (max-width: 767px){
#grad1 {
margin-left: 0px;
}
HTML:
<div id=#grad1>
</div>
mentre in questo caso non casica proprio in css:
codice:
css
HTML:
.grad1 {
margin-left: 25%;
height: 216px;
width: 599px;
background-image: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,1));
border-radius:10px;
}
.grad1:hover {
margin-left: 25%;
height: 216px;
width: 599px;
background-image: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
border-radius:10px;
}
@media (max-width: 767px){
.grad1 {
margin-left: 0px;
}
<div class="grad1">
</div>
Ultima modifica di un moderatore: