1
I have a serious problem with Media Query, I am testing in this code and does not change the state at all, reduce the screen to the maximum and the colors continue without changing; HELP
.box{
width: 200px;
height: 200px;
background-color: red;
}
.box2{
width: 250px;
height: 250px;
background-color: blue;
}
.box3{
width: 150px;
height: 150px;
background-color: pink;
}
@media screen (min-width:480px){
.box{
width: 200px;
height: 200px;
background-color: black;
}
.box2{
width: 250px;
height: 250px;
background-color: green;
}
.box3{
width: 150px;
height: 150px;
background-color: grey;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Teste</title>
<link rel="stylesheet" href="css/main.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<header>
<div>
<div class="box"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
</header>
</body>
</html>
Thank you so much, it worked out great.
– Filipe Trader
You’re welcome @Filipetrader
– Miguel