Search code examples
htmlcssinvisible

Making a class invisible


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?


Solution

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

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