D
D
Daria2017-10-11 09:18:18
Media queries
Daria, 2017-10-11 09:18:18

How to make an image disappear from a website. With media queries?

When the screen width is less than (let's say) 700px. That is, I need the picture to completely disappear from the site if it is accessed from a tablet or phone, no, you don’t need to adapt it to a different size, you just need to disappear.
701 px picture is 699px and all pictures are not. If it is possible with a code example please :) Thank you)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daria, 2017-10-11
@Dasha_2017

The issue is resolved, maybe it will come in handy for someone:
instead of 1024, you can specify any desired size at which the image will disappear from the site.
media screen and (max-width: 1024px) {
.osaks {
width:0px;
overflow-x: auto;

A
Alexander, 2017-10-11
@apisklov

media screen and (max-width: 700px) {
.osaks {
display:none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question