div.klase {
background-color: aqua;
height: 200px;
width: 300px;
border: 1px solid red;
box-sizing: border-box;
}
@media screen and (max-width:500px;
) {
.klase {
background-color: pink;
}
}
<div class="klase"></div>
First of all sorry if this question might be dumb , I'm trying to change its .klase color to pink when it is smaller than 500px . But it doesn't seem to work that way even though it's almost similiar to the other examples of media queries. Appreciate any help, thanks in advance.