I would like to know what I'm doing wrong, I want it when the user enters my site through the mobile phone, change some dimensions of my page, background and other things that I will change ..
@media screen and (max-width: 480px){
div#container {
background-color: red;
margin: 2% 0 2% 0;
}
}
#container {
background-color: silver;
margin: 2% 12% 2% 12%;
padding: 2% 5% 2% 5%;
color: #252525;
}
<!DOCTYPE html>
<html lang="PT-BR">
<head>
<title></title>
<link rel="stylesheet" href="_css/estilo.css"/>
<meta charset="UTF-8"/>
</head>
<body>
<div id="container">
<p> aqui eu tenho alguns parágrafos no meu site..</p>
<p>porém visto pelo celular fica muito pequeno ou as margens ficam muito grande, queria que se tornasse responsivo</p>
</div>
</body>
</html>
Note: I already looked at other topics related here on the site but in practice I could not, so I decided to post. Thank you in advance!