HR "Invisible" float clearing


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

an all-purpose float-clearing hr.


Copy this code and paste it in your HTML
  1. hr.floatclear {
  2. background: none;
  3. border: 0;
  4. clear: both;
  5. display: block;
  6. float: none;
  7. font-size: 0;
  8. margin: 0;
  9. padding: 0;
  10. overflow: hidden;
  11. visibility: hidden;
  12. width: 0;
  13. height: 0;
  14. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.