getting rid of default form styles


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

this gets rid of all default form styles set by browser


Copy this code and paste it in your HTML
  1. <style>
  2. form * {
  3. background: none;
  4. }
  5.  
  6. input[type=text], input[type=password], input[type=submit],textarea, button {
  7. -webkit-appearance: none;
  8. -moz-appearance: none;
  9. border: 1px solid #666;
  10. background: none;
  11. -webkit-border-radius: 0;
  12. -moz-border-radius: 0;
  13. border-radius: 0;
  14. padding: 0;
  15. margin: 0;
  16. }
  17. </style>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.