We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

lister on 06/12/08


Tagged


Versions (?)


CSS Global Reset - edit


Published in: CSS 


URL: http://meyerweb.com/eric/tools/css/reset/

edit

  1. /*
  2.   AUTHOR: YOUR NAME HERE
  3.   you@domain.com
  4. */
  5.  
  6. /* ------------------------------------------ */
  7. /* RESETS, BASIC PAGE SETUP, BASIC TYPOGRAPHY */
  8. /* ------------------------------------------ */
  9.  
  10. html, body, div, span, applet, object, iframe,
  11. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  12. a, abbr, acronym, address, big, cite, code,
  13. del, dfn, em, font, img, ins, kbd, q, s, samp,
  14. small, strike, strong, sub, sup, tt, var,
  15. b, u, i, center,
  16. dl, dt, dd, ol, ul, li,
  17. fieldset, form, label, legend,
  18. table, caption, tbody, tfoot, thead, tr, th, td {
  19. margin: 0;
  20. padding: 0;
  21. border: 0;
  22. outline: 0;
  23. font-size: 62.5%;
  24. vertical-align: baseline;
  25. background: transparent;
  26. }
  27. body {
  28. line-height: 1;
  29. }
  30. ol, ul {
  31. list-style: none;
  32. }
  33.  
  34. p {
  35. color:#666666;
  36. font-family:Verdana,Arial,Helvetica,sans-serif;
  37. font-size:1.1em;
  38. line-height:1.6em;
  39. }
  40.  
  41.  
  42. blockquote, q {
  43. quotes: none;
  44. }
  45. blockquote:before, blockquote:after,
  46. q:before, q:after {
  47. content: '';
  48. content: none;
  49. }
  50. /* END RESET */
  51.  
  52.  
  53. /* ------------------------------------------ */
  54. /* TOOLBOX CSS */
  55. /* ------------------------------------------ */
  56. .floatleft { float: left; }
  57. .floatright { float: right; }
  58. .clear { clear: both; }
  59. /* END TOOLBOX */
  60.  
  61.  
  62. /* ------------------------------------------ */
  63. /* PAGE STRUCTURE */
  64. /* ------------------------------------------ */
  65. #page-wrap {
  66. width: 775px;
  67. margin: 0 auto;
  68. }
  69. /* ------------------------------------------ */
  70. /* PAGE STRUCTURE */
  71. /* ------------------------------------------ */

Report this snippet 

You need to login to post a comment.