Wall Street on Demand Interview Question
14 Interview Reviews |
Back to all Wall Street on Demand Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Web Developer at Wall Street on Demand:
What's the difference between display: none and visibility: hidden?
| Tags: | css See more , See less 8 |
See more for this Wall Street on Demand Web Developer Interview
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by Interview Candidate:
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.