2.8 of 5 261 reviews London, United Kingdom 1000 to 5000 Employees

Markit Web Developer Interview Question

I interviewed in Boulder, CO and was asked:
"What's the difference between display: none and visibility: hidden?"
Tags: css
Add Tags [?]
Answer Flag Question

Part of a Web Developer Interview Review - one of 88 Markit Interview Reviews

Answers & Comments

of 0
The display: none and visibility: hidden CSS properties appear to be the same thing, but they aren't.

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 Flag Response

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at Markit interview questions and advice. All interview reviews posted anonymously by Markit employees and interview candidates.