3
Greeting,
What I need to do is make an image invisible when the screen resolution reaches 576px, but I’m not succeeding, I’m doing so;
HTML
<div class="col-sm-2 topo_branco animated fadeInDown">
<img src="assets/img/seta.JPG" height="250" >
</div>
CSS
.topo_branco{
visibility: visible;
height: 200px;
margin: 20px 0;
padding: 10px;
}
@media(max-width: 576px){
.topo_branco{
visibility: hidden;
}
}
What could be wrong?
Nothing, your code works perfectly: http://output.jsbin.com/rimulayacu. Why not elaborate a [mcve] demonstrating the problem?
– Woss
build a code so we can validate exactly. I created a fiddle and "hide" the div and the image, what exactly isn’t working? http://jsfiddle.net/rjq402vL/
– Ricardo Pontual
When the resolution reaches 576px it was for the image to be invisible.
– wladyband
Which browser is using?
– LeAndrade
Your problem may be because you are using two classes of "visibility" one at hand in @media and the other with animeted.css fadeInDown, they must be conflicting and overwriting something like this... test remove the class
fadeInDown
to test that it must solve.– hugocsl
@wladyband And that’s exactly what your code does. See that I just copied and pasted your code into my example and it worked. Then do a [mcve] demonstrating the problem, because there are other factors in your application that are influencing and that have not been described in the question.
– Woss