Posted By


mortennajbjerg on 09/29/11

Tagged


Statistics


Viewed 220 times
Favorited by 0 user(s)

Restet stylesheet Clearfix


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



Copy this code and paste it in your HTML
  1. html, body, div, span, applet, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. a, abbr, acronym, address, big, cite, code,
  4. del, dfn, em, font, img, ins, kbd, q, s, samp,
  5. small, strike, strong, sub, sup, tt, var,
  6. dl, dt, dd, ol, ul, li,
  7. fieldset, form, label, legend,
  8. table, caption, tbody, tfoot, thead, tr, th, td {
  9. margin: 0;
  10. padding: 0;
  11. border: 0;
  12. outline: 0;
  13. font-weight: inherit;
  14. font-style: inherit;
  15. font-size: 100%;
  16. font-family: inherit;
  17. vertical-align: baseline;
  18. }
  19. table, tr, th, td{
  20. vertical-align: top;
  21. }
  22.  
  23. /* remember to define focus styles! */
  24. :focus {
  25. outline: 0;
  26. }
  27. textarea,input{
  28. color: inherit;
  29. font-family: inherit;
  30. font-size: inherit;
  31. }
  32. body {
  33. line-height: 1;
  34. color: black;
  35. background: white;
  36. }
  37. ol, ul {
  38. list-style: none;
  39. }
  40. li{
  41.  
  42. vertical-align: baseline;
  43.  
  44. }
  45. /* tables still need 'cellspacing="0"' in the markup */
  46. table {
  47. border-collapse: collapse;
  48. border-spacing: 0;
  49. vertical-align: top;
  50. }
  51. caption, th, td {
  52. text-align: left;
  53. font-weight: normal;
  54. }
  55. blockquote:before, blockquote:after,
  56. q:before, q:after {
  57. content: "";
  58. }
  59. blockquote, q {
  60. quotes: "" "";
  61. }
  62. EM{ font-style: italic; }
  63. STRONG{ font-weight: bold; }
  64.  
  65. /* new clearfix */
  66. .clearfix:after {
  67. visibility: hidden;
  68. display: block;
  69. font-size: 0;
  70. content: " ";
  71. clear: both;
  72. height: 0;
  73. }
  74. * html .clearfix { zoom: 1; } /* IE6 */
  75. *:first-child+html .clearfix { zoom: 1; } /* IE7 */

Report this snippet


Comments


You need to login to view comments.