Hacker News new | ask | show | jobs
by ivanhoe 1975 days ago
Seriously, never had to deal with visibility:hidden before? To quote the Pythons: You lucky, lucky bastard....
1 comments

It’s kind of unusual to set visibility to hidden in CSS, it’s more something you’d code in jQuery, or handle in the React code itself.
If you've never before seen this hack consider yourself privileged to been born in a better world, without IE6 :P

.clearfix:after {

  visibility: hidden;

  display: block;

  font-size: 0;

  content: " ";

  clear: both;

  height: 0;

}