Answer the question
In order to leave comments, you need to log in
Why is the wrong width of the image on the mobile device when using srcset?
Decided to test img srcset features for adaptive images for the first time.
HTML code:
<img src="img/pages.png"
srcset="img/pages-2x.png 2x,
img/pages.png 1x"
alt="Images" class="section-two-img l-center"/>
.section-two-img {
width: 100%;
max-width: 100%;
media only screen and (min-width: 1024px) {
max-width: 800px;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question