Changing the visibility of an element doesn't remove the space it takes on the page. To hide an element that does not take any space, use the display property.
Options
Preview
This box is visible.
Code
We use necessary cookies to make our site work. We’d like to set additional cookies to understand site usage, make site improvements, and remember your settings. We also use cookies from other sites to help deliver content from their services.
Changing the visibility of an element doesn't remove the space it takes on the page. To hide an element that does not take any space, use the display property.