Mohamed Magdy
0
Q:

css visibility

{ visibility: hidden; }   
{ visibility: visible; }  
{ visibility: collapse; } 
4
.classname {
    visibility: hidden;
}
6
/*Hiding an element can be done by setting the display property to none. 
The element will be hidden, and the page will be displayed as if the element is not there:
Example:
*/

h1.hidden {
  display: none;
}

/*visibility:hidden; also hides an element.
However, the element will still take up the same space as before. 
The element will be hidden, but still affect the layout:
Example:
*/

h1.hidden {
  visibility: hidden;
}
2
.classname {
    display: none;
}
7

New to Communities?

Join the community