Posted By

jefferis on 01/08/14


Tagged

image mobile scale


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jefferis


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  

Comments

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.