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

fjm on 09/23/07


Tagged

css


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

basicmagic
neuroasis
jonhenshaw
gbot


[CSS]Blueprint Reset Reloaded


Published in: CSS 


URL: http://coliss.com/articles/build-websites/operation/css/439.html

ブラウザのスタイルを初期化するスタイルシート

  1. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td{
  2. margin:0; padding:0; border:0; font-weight: nherit; font-style:inherit; font-size:100%; font-family:inherit; vertical-align:baseline;
  3. }
  4. body{
  5. line-height:1.5; background:#fff; margin:1.5em 0;
  6. }
  7. table{
  8. border-collapse:separate; border-spacing:0;
  9. }
  10. caption, th, td{
  11. text-align:left; font-weight:400;
  12. }
  13. blockquote:before, blockquote:after, q:before, q:after{
  14. content:"";
  15. }
  16. blockquote, q{
  17. quotes:"" "";
  18. }
  19. a img{
  20. border:none;
  21. }

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: jonhenshaw on October 29, 2007

I think the "line-height:1.5" should have an "EM" after the number.

You need to login to post a comment.