Q
What is the difference between display: none and visibility: hidden?
-
A
They are identical
-
B
display: none keeps its space
-
C
display: none removes the element from the layout; visibility: hidden hides it but keeps its space
-
D
visibility: hidden removes it from the layout
Correct Answer:
C. display: none removes the element from the layout; visibility: hidden hides it but keeps its space
Explanation:
opacity: 0 also keeps the space, and the element can still be clicked.