Posted By

jefferis on 04/22/14


image auto mobile scaling responsive

Versions (?)

responsive mobile image scaling

 / Published in: CSS

allows image to scale to fit mobile windows.

  1. img {
  2. width: auto !important;
  3. height: auto !important;
  4. max-width: 100%;
  5. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: jefferis on April 22, 2014

If placed within @media, code will only affect small screens:

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {


You need to login to post a comment.