display and visibility properties are used to hide and show elements in any page. Then how they are different from each other?
Interview question and answer by: Virendradugar
| Posted on: 12/28/2009 | Category: CSS Interview questions
| Views: 1519 |
As said Both the properties are used to hide and show elements but they are different in the way they both work. visibility property, set to hidden will still occupy the space in the layout but display:none does not take up the space in the page.
| Alert Moderator
Found interesting? Add this to: