Posted By

vanne on 04/23/08


Tagged

css textmate


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

pagetoscreen


Auto Clear Elements


 / Published in: Other
 

  1. /* FOR TEXTMATE (and E Editor?) ONLY */
  2. /* auto clear for modern browsers */
  3. ${1:element}:after{
  4. content: ".";
  5. display: block;
  6. height: 0;
  7. font-size:0;
  8. clear: both;
  9. visibility:hidden;
  10. }
  11.  
  12. /* auto clear for the browser that could...
  13. this needs the css_browser_select js script :
  14. http://rafael.adm.br/css_browser_selector/css_browser_selector.js.txt */
  15. .ie ${1:element}{
  16. height: 1%;
  17. display:block;
  18. }

Report this snippet  

You need to login to post a comment.