Resize images for viewing on mobile or small device


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. @media screen and (max-device-width: 480px){
  2. img{
  3. max-width:100%;
  4. height:auto;
  5. }
  6. }

URL: http://www.catswhocode.com/blog/10-useful-code-snippets-to-develop-iphone-friendly-websites

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.