I'm trying to make a DIV
only show on small screens, so I've defined the following:
@media screen and (max-width: 460px) {
#bloco{
display: block;
width: 100%;
height: 50px;
background-color: rgb(150,125,24);
}
Outside the mediaquerie is
#bloco{
display:none;
width: 100%;
height: 50px;
background-color: rgb(230,25,24);
}
but it does not work. I tested the opposite:
display:none;
in standard css and
display: block;
In the breakpoint and it worked, Why is this happening?