CSS Mobile Reset


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

This is a CSS framework to reset styles for mobile devices


Copy this code and paste it in your HTML
  1. html, body
  2. {
  3. margin: 0;
  4. padding: 0;
  5. border: 0;
  6. }
  7.  
  8. body
  9. {
  10. font-family:Arial, sans-serif;
  11. line-height:1.5;
  12. font-size:16px;
  13. background: #fff;
  14. padding:5px;
  15. color: #000;
  16. word-wrap: break-word;
  17. -webkit-text-size-adjust: none;
  18. }
  19.  
  20. h1, h2, h3, h4, h5, h6{ font-weight: normal; }
  21.  
  22. p img { float: left; margin: 0 10px 5px 0; padding: 0; }
  23.  
  24. img { border: 0; max-width: 100%; }
  25.  
  26. table { width:auto; border-collapse: collapse;border-spacing: 0; }

URL: www.megawrz.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.