Answer the question
In order to leave comments, you need to log in
How to stretch images to full width on a mobile site?
Hello.
In order for the image to stretch to the full width of the page, I used the following code:
<style>
@media only screen and (min-width : 320px) and (max-width : 480px) {
img {width: 100%;}
}
</style>
Answer the question
In order to leave comments, you need to log in
You have the align: left class on your figure parent. What is causing the flow to the left of the image?
@media only screen and (min-width : 320px) and (max-width : 480px) {
img {width: 100%;}
.alignleft {
float: none;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question