Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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;

}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: