how can i remove all content of a div if the webpage is only X px width i am searching for something like this
<div if(min-width:1000)
{content=''}>
<img>
<script>
....
</script>
</div>
Thank you for your answers
how can i remove all content of a div if the webpage is only X px width i am searching for something like this
<div if(min-width:1000)
{content=''}>
<img>
<script>
....
</script>
</div>
Thank you for your answers
You can use media query to achieve this.
@media screen and (max-width: 1000px){
div{
display: none;
}
}
The above css snippet will hide the div if the width is less the 1000px.