Hacker News new | ask | show | jobs
by bluedevil2k 1975 days ago
I just learned something today, and I do CSS (amongst other things) for a living. Maybe it should be visible: true|false|ghost
1 comments

Seriously, never had to deal with visibility:hidden before? To quote the Pythons: You lucky, lucky bastard....
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;

}