How do I change HTML5 images in CSS3 media queries? I want my images to change in mobile view.
Gabriel F.
answered 12/23/19
UI Engineer
Hi there. You need to target the screen in your media query and within that media query target the images. Something like this:
@media screen and (max-width: 680px) {
img {
}
}
I hope this helps.
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.