DzR Master Stylesheet (Part III, IE)


/ Published in: CSS
Save to your folder(s)

Fixes and fallbacks for IE for [my reset stylesheet](http://snipplr.com/view/16353/ "DzR Full CSS Reset"). Actually two separate stylesheets: one for IE in general and one for IE6 specifically.

[Part I](http://snipplr.com/view/16353/ "DzR Master Stylesheet (Part I, Reset)")
[Part II](http://snipplr.com/view/16354/ "DzR Master Stylesheet (Part II, Classes)")


Copy this code and paste it in your HTML
  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

You need to login to post a comment.