Posted By

jefferis on 01/08/14


image mobile scale

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Image Scale for Mobile

 / Published in: CSS

make images auto scale for mobile phones

  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 January 24, 2015

To add this to a single document header, enclose in :

img { width: auto !important; height: auto !important; max-width: 100%; }

You need to login to post a comment.