0
I have the following CSS script:
<style type="text/css">
@media screen and (max-width: 600px) {
.comp {
background-color: #000000;
display: block;
}
}
</style>
<div class="comp">
</div>
The background-color works perfectly. But what I need is for the DIV COMP to be invisible when max-width is greater than 600px; and to be visible when max-width is less than 600px;
Friend, I recommend using the medias queries. Read the link to understand what they are and how they will help you. http://pt-br.learnlayout.com/media-queries.html
– Gilmar Santos