visibility: hidden vs display: none

PHOTO EMBED

Fri Mar 17 2023 11:47:09 GMT+0000 (Coordinated Universal Time)

Saved by @Sebhart #css #layout

/* Use */ 
visibility: hidden 
/* when you want to hide an element from view but still want it to occupy space on the page. This can be useful when you want to reveal the element later or when you want to maintain the layout of the page. */

/* Use */
display: none 
/* when you want to completely remove an element from the page and don’t want it to occupy any space. This can be useful when you want to completely hide an element and don’t plan to reveal it later. */
content_copyCOPY

https://1stwebdesigner.com/css-basics-visibility-hidden-vs-display-none/