An element with display: none; differs from visibility: hidden; because the former ________.

  • Flips the element upside down
  • Hides the element but reserves its space
  • Makes the element transparent
  • Removes the element from the layout
An element with display: none; removes the element from the layout entirely. It doesn't occupy any space, and other elements act as if it's not there. In contrast, visibility: hidden; hides the element but still reserves its space in the layout.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *