Resetting The Browser Default Styles In CSS


SUBMITTED BY: Guest

DATE: June 12, 2013, 1:21 a.m.

FORMAT: CSS

SIZE: 1.5 kB

HITS: 1023

  1. <style type="text/css">
  2. /* source: http://www.apphp.com/index.php?snippet=css-reset-browser-default-styles */
  3. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code
  4. , del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
  5. { margin:0; padding:0; border:0; font-size:100%; font:inherit; vertical-align:baseline; outline:none; }
  6. html
  7. { height:101%; } /* always show scrollbars */
  8. body
  9. { font-size:62.5%; line-height:1; font-family:Arial, Tahoma, Verdana, sans-serif; }
  10. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section
  11. { display:block; }
  12. img
  13. { border:0; max-width:100%; }
  14. a
  15. { text-decoration:none; }
  16. a:hover
  17. { text-decoration:underline; }
  18. ol, ul
  19. { list-style:none; }
  20. blockquote, q
  21. { quotes:none; }
  22. blockquote:before, blockquote:after, q:before, q:after
  23. { content:""; content:none; }
  24. strong
  25. { font-weight:bold; }
  26. input
  27. { outline:none; }
  28. table
  29. { border-collapse:collapse; border-spacing:0; }
  30. </style>

comments powered by Disqus