Posted By

wizard04 on 06/26/09


Tagged

css ie reset


Versions (?)



Who likes this?

2 people have marked this snippet as a favorite

spazione
aleksanderek


DzR Master Stylesheet (Part III, IE)


Published in: CSS 



Website Promotion
DIRECTORY
is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Fixes and fallbacks for IE for my reset stylesheet. Actually two separate stylesheets: one for IE in general and one for IE6 specifically.

Part I Part II

Expand | Embed | Plain Text
  1. -------------------------- For IE in general --------------------------------
  2.  
  3. hr {
  4. height:5px;
  5. margin:0;
  6. }
  7.  
  8. ol.lines { list-style-type:decimal; }
  9.  
  10. legend {
  11. padding-left:0;
  12. padding-right:0;
  13. }
  14.  
  15. ------------------------------ For IE 6 -------------------------------------
  16.  
  17. dl { margin-top:0.5em; }
  18.  
  19. select { vertical-align:text-top; }
  20.  
  21. ul.inline li, ol.inline li {
  22. display:inline;
  23. }
  24.  
  25. /*selector element `>` and pseudo-class :first-child aren't supported, so
  26.   we'll have to use the `tree` class on everything*/
  27. ol.tree li div.tree {
  28. text-indent:0;
  29. padding-left:0.4ex; /*= D*/
  30. }
  31. ol.tree li div.tree span.tree {
  32. display:block;
  33. height:0;
  34. overflow:hidden;
  35. border-bottom:1px solid #BBB;
  36. width:1.55ex; /*= A*/
  37. margin-left:-1.95ex; /*= -(A + D)*/
  38. margin-bottom:-0.825em; /*= C + (line-height)/2*/
  39. }

Report this snippet 

You need to login to post a comment.