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
 

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

  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  

Comments

RSS Icon Subscribe to comments
Posted By: wizard04 on April 16, 2014

The latest: https://gist.github.com/wizard04wsu/9080346

You need to login to post a comment.