oh hai.

CSS Global Clear with SASS

Posted: October 23rd, 2008 | Author: Nick | Filed under: css, sass | Tags: , , , |

I’m a big fan of Haml and Sass, they basically spring clean your views. I always use a global clear in my main CSS file and went ahead and transferred the regular CSS code over to Sass. Only took 5 minutes but comes in handy for future uses so that you can have everything in one file.

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del,
dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub,
sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td
  :margin 0
  :padding 0
  :border 0
  :outline 0
  :font-weight inherit
  :font-style inherit
  :font-size 100%
  :font-family inherit
  :vertical-align baseline
  :background transparent


One Comment on “CSS Global Clear with SASS”

  1. 1 Christoph Schuessler said at 12:02 pm on November 21st, 2008:

    I usually go with Eric Meyer’s solution (http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/) - plain CSS though, no SASS ;-) That one does it all.


Leave a Reply