Auto Clear Elements


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



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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.