Posted By


ertbor on 01/04/11

Tagged


Statistics


Viewed 554 times
Favorited by 0 user(s)

Reset Revisited


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



Copy this code and paste it in your HTML
  1. /* http://meyerweb.com/eric/tools/css/reset/
  2.   v2.0b1 | 201101 */
  3.  
  4. html, body, div, span, applet, object, iframe,
  5. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  6. a, abbr, acronym, address, big, cite, code,
  7. del, dfn, em, img, ins, kbd, q, s, samp,
  8. small, strike, strong, sub, sup, tt, var,
  9. b, u, i, center,
  10. dl, dt, dd, ol, ul, li,
  11. fieldset, form, label, legend,
  12. table, caption, tbody, tfoot, thead, tr, th, td,
  13. article, aside, canvas, details, figcaption, figure,
  14. footer, header, hgroup, menu, nav, section, summary,
  15. time, mark, audio, video {
  16. margin: 0;
  17. padding: 0;
  18. border: 0;
  19. outline: 0;
  20. font-size: 100%;
  21. font: inherit;
  22. vertical-align: baseline;
  23. }
  24. /* HTML5 display-role reset for older browsers */
  25. article, aside, details, figcaption, figure,
  26. footer, header, hgroup, menu, nav, section {
  27. display: block;
  28. }
  29. body {
  30. line-height: 1;
  31. }
  32. ol, ul {
  33. list-style: none;
  34. }
  35. blockquote, q {
  36. quotes: none;
  37. }
  38. blockquote:before, blockquote:after,
  39. q:before, q:after {
  40. content: '';
  41. content: none;
  42. }
  43.  
  44. /* remember to define visible focus styles!
  45. :focus {
  46. outline: ?????;
  47. } */
  48.  
  49. /* remember to highlight inserts somehow! */
  50. ins {
  51. text-decoration: none;
  52. }
  53. del {
  54. text-decoration: line-through;
  55. }
  56.  
  57. table {
  58. border-collapse: collapse;
  59. border-spacing: 0;
  60. }

URL: http://meyerweb.com/eric/thoughts/2011/01/03/reset-revisited/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.