Screen suitability is not doing its function "@media screen and () {}"

2

The screen suitability is not responding to the defined attributes, apparently it seems right, but the width and height of the object when the browser screen is reduced in (max-width:400px) has no effect, something so simple and I could not solve , what could be going wrong ??

*{ padding:0px; margin:;}
.bl{ background-color:#F33; 
border:2px solid #000; 
margin:150px auto; 
position:relative; 
width:600px; 
height:300px;
}
@media screen and(max-width:400px){
	.bl{ width:200px; height:200px;}
}
<div class="bl"></div>
    
asked by anonymous 05.06.2018 / 20:25

1 answer

3

Dude your problem is with this and( the word can not stay pasted on (

It has to be this way with space

@media screen and (max-width:400px)
    
05.06.2018 / 20:41