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

aznprncritic on 02/04/07


Tagged

css tantek yahoo reset yui cross-browser


Versions (?)


Who likes this?

7 people have marked this snippet as a favorite

jonhenshaw
damarev
basicmagic
maxkks
tedoe
markor
esquareda


YUI Reset CSS


Published in: CSS 


URL: http://developer.yahoo.com/yui/reset/

Similar to Tantek Celik's famous "vanishing" css (http://snipplr.com/view/266/undohtmlcss--tanteks-original-removes-browser-default-style), this basically levels the playing field for browsers by normalizing the default rendering of common HTML elements.

  1. body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}
  2. table{border-collapse:collapse;border-spacing:0;}
  3. fieldset,img{border:0;}
  4. address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
  5. ol,ul {list-style:none;}
  6. caption,th {text-align:left;}
  7. h1,h2,h3,h4,h5,h6{font-size:100%;}
  8. q:before,q:after{content:'';}

Report this snippet 

You need to login to post a comment.