If visibility property set to "hidden"
, the browser will still take space on the page for the content even though it's invisible.
But when we set an object to "display:none"
, the browser does not allocate space on the page for its content.
Example:
Content not display on screen and even space not taken.
Content not display on screen but it will take space on screen.
View details