Categories
Quercus

CSS: The difference between display and visibility

CSS contains two properties that affect visibility.  If you aren’t fully familiar with the difference, you might assumed the following were basically identical:

h1.hidden {visibility:hidden;}

h1.hidden {display:none;}

However, these two class definitions will do two very different things.