Answer the question
In order to leave comments, you need to log in
How to remove an element (image) from the site if the screen width is less than x?
I am doing a responsive design, it is necessary that a certain element is not displayed at a low screen resolution, preferably with the help of css.
Answer the question
In order to leave comments, you need to log in
use media query. For example
@media (min-width:900px) and (max-width:1300px) {
.need-hide{
display:none;
}
}
solved by adding to css file
@media (max-width:[разрешение экрана]px)
{ [селектор блока]{display:none;} }
<div id=qwe></div>
will be #qwe<div class=qwe></div>
will be .qwe<img src="..." />
will be img
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question