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. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.