I have a Moto G phone and I can not set @media
to work for it.
Reducing the width of the browser works perfectly, but in the mobile device it does not adjust according to @media
.
Below I put the form
background to gray, and nothing happens. See what I did?
@media(max-width: 574px) {
.menutopo{
display: none;
}
figure.logo{
float: left;
width: 100%;
height: 80px;
background-color: #FF8922;
box-sizing: border-box;
}
section.frmbuscaguia{
float:left;
width: 100%;
min-width: 200px;
height: auto;
background-color: #ccc;
text-align: center;
margin-bottom: 5px;
box-sizing: border-box;
}
}
HTML
<figure class="logo">
<p class="text-center"><img src="./imagens/logo.png" align="center"></p>
</figure>
<section class="frmbuscaguia">
<h1>Buscar no Guia Comercial</h1>
<form>
<input type="text" name="buscar">
<button type="submit">Pesquisar</button>
</form>
</section>