Posted By

cesgra on 10/25/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

cesgra
vali29


Cross-Browser hr Styling


 / Published in: CSS
 

URL: http://css-tricks.com/snippets/css/cross-browser-hr-styling/

  1. /* For regular browsers */
  2.  
  3. hr {
  4. border : 0;
  5. height : 15px;
  6. background : url(hr.gif) 50% 0 no-repeat;
  7. margin : 1em 0;
  8. }
  9.  
  10. /* For IE < 8 (use conditional stylesheets) */
  11.  
  12. hr {
  13. display : list-item;
  14. list-style : url(hr.gif) inside;
  15. filter : alpha(opacity=0);
  16. width : 0;
  17. }

Report this snippet  

You need to login to post a comment.