Interview Question

Interview Boulder, CO

What's the difference between display: none and visibility

  : hidden?

Interview Answer

1 Answer


The display: none and visibility: hidden CSS properties appear to be the same thing, but they aren't. Answer: These two style properties do two different things. visibility: hidden hides the element, but it still takes up space in the layout. display: none removes the element completely from the document. It does not take up any space, even though the HTML for it is still in the source code.

Interview Candidate on Jun 1, 2010

Add Answers or Comments

To comment on this, Sign In or Sign Up.