Posted By

dedi49 on 11/05/12


Tagged

reset


Versions (?)

Reset (YUI)


 / Published in: CSS
 

  1. /*
  2. Copyright (c) 2009, Yahoo! Inc. All rights reserved.
  3. Code licensed under the BSD License:
  4. http://developer.yahoo.net/yui/license.txt
  5. version: 2.8.0r4
  6. */
  7.  
  8. html {
  9. color: #000;
  10. }
  11.  
  12. body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td {
  13. margin: 0;
  14. padding: 0;
  15. }
  16.  
  17. table {
  18. border-collapse: collapse;
  19. border-spacing: 0;
  20. }
  21.  
  22. fieldset, img {
  23. border: 0;
  24. }
  25.  
  26. address, caption, cite, code, dfn, em, strong, th, var, optgroup {
  27. font-style: inherit;
  28. font-weight: inherit;
  29. }
  30.  
  31. del, ins {
  32. text-decoration: none;
  33. }
  34.  
  35. li {
  36. list-style: none;
  37. }
  38.  
  39. caption, th {
  40. text-align: left;
  41. }
  42.  
  43. h1, h2, h3, h4, h5, h6 {
  44. font-size: 100%;
  45. font-weight: normal;
  46. }
  47.  
  48. q:before, q:after {
  49. content: '';
  50. }
  51.  
  52. abbr, acronym {
  53. border: 0;
  54. font-variant: normal;
  55. }
  56.  
  57. sup {
  58. vertical-align: baseline;
  59. }
  60.  
  61. sub {
  62. vertical-align: baseline;
  63. }
  64.  
  65. /*because legend doesn't inherit in IE */
  66. legend {
  67. color: #000;
  68. }
  69.  
  70. input, button, textarea, select, optgroup, option {
  71. font-family: inherit;
  72. font-size: inherit;
  73. font-style: inherit;
  74. font-weight: inherit;
  75. }
  76.  
  77. .clearfix:after {
  78. content: ".";
  79. display: block;
  80. clear: both;
  81. visibility: hidden;
  82. line-height: 0;
  83. height: 0;
  84. }
  85.  
  86. .clearfix {
  87. display: inline-block;
  88. }
  89.  
  90. html[xmlns] .clearfix {
  91. display: block;
  92. }
  93.  
  94. * html .clearfix {
  95. height: 1%;
  96. }
  97.  
  98. /*@purpose To enable resizing for IE */
  99. /*@branch For IE6-Win, IE7-Win */
  100. input, button, textarea, select {
  101. *font-size: 100%;
  102. }
  103.  

Report this snippet  

You need to login to post a comment.