Template for blank CSS


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



Copy this code and paste it in your HTML
  1. /*-----------------------------------------------------------------------------
  2. version: 1.0
  3. author: Tony Crockford
  4. website: http://www.boldfish.co.uk/
  5. date:
  6.  
  7. Copyright 2006 Tony Crockford All Rights Reserved
  8. -----------------------------------------------------------------------------*/
  9.  
  10. /* =General
  11. -----------------------------------------------------------------------------*/
  12.  
  13. /* hack for forcing scroll bars to stop page jog - http://www.splintered.co.uk/experiments/49/ */
  14. html { margin-bottom: 1px; min-height: 100%; }
  15.  
  16. /* Remove padding and margin on selected elements*/
  17. h1,h2,h3,h4,h5,h6,pre,body,p,div{margin: 0; padding: 0;}
  18.  
  19. /*debug border on all divs*/
  20. div{
  21. border: 1px solid #ccc;
  22. }
  23.  
  24. /* Class for clearing floats */
  25. .clear {
  26. clear:both;
  27. }
  28.  
  29. /* Remove border around linked images and fix Firefox odd spaces */
  30. img {
  31. border: 0;
  32. vertical-align: bottom;
  33. }
  34.  
  35. /* =Structural
  36. -----------------------------------------------------------------------------*/
  37.  
  38.  
  39. /* =Typography
  40. -----------------------------------------------------------------------------*/
  41.  
  42.  
  43.  
  44. /* =Headings
  45. -----------------------------------------------------------------------------*/
  46.  
  47.  
  48.  
  49. /* =Links
  50. -----------------------------------------------------------------------------*/
  51.  
  52.  
  53.  
  54.  
  55. /* =Branding
  56. -----------------------------------------------------------------------------*/
  57.  
  58.  
  59.  
  60.  
  61. /* =Main Nav
  62. -----------------------------------------------------------------------------*/
  63.  
  64.  
  65.  
  66.  
  67. /* =Sub Nav
  68. -----------------------------------------------------------------------------*/
  69.  
  70.  
  71.  
  72.  
  73. /* =Main Content
  74. -----------------------------------------------------------------------------*/
  75.  
  76.  
  77.  
  78.  
  79. /* =Secondary Content
  80. -----------------------------------------------------------------------------*/
  81.  
  82.  
  83.  
  84. /* =Footer
  85. -----------------------------------------------------------------------------*/
  86.  
  87.  
  88.  
  89. /* =Forms
  90. -----------------------------------------------------------------------------*/
  91.  
  92.  
  93.  
  94.  
  95. /* =Tables
  96. -----------------------------------------------------------------------------*/
  97.  
  98. table {
  99. border-spacing: 0;
  100. border-collapse: collapse;
  101. }
  102.  
  103. td {
  104. text-align: left;
  105. font-weight: normal;
  106. }
  107.  
  108.  
  109.  
  110. /* =Misc 1
  111. -----------------------------------------------------------------------------*/
  112.  
  113.  
  114.  
  115. /* =Misc 2
  116. -----------------------------------------------------------------------------*/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.