What is the difference between visibility:hidden; and display:none.

Last updated:9/20/2020 7:45:19 PM

1 Answers

Harsh kumar srivastava
Harsh kumar srivastava

visibilty:hidden hide the element but still occupy the space. But display:none is not occupy the space because its not available in the page.

Or in simple words visibilty:hidden preseves the space and display:none does not preserve the space.

Answer