Making a class invisible

user785519 picture user785519 · Jun 10, 2011 · Viewed 10.2k times · Source

I'm want to have a div with class "a" to be invisible. I've tried already to give it the display: none; line in the CSS file but what it does is hide it, yet it doesn't catch any space and so all my other boxes don't stay in place.

Is there a way to do this using CSS?

Answer

Nachshon Schwartz picture Nachshon Schwartz · Jun 10, 2011

add .a{visibility: hidden} to your CSS. More about it here:

http://reference.sitepoint.com/css/visibility