Which display value would you use to hide an element but keep its space in the layout?

  • display: block;
  • display: hidden;
  • display: invisible;
  • display: none;
To hide an element but maintain its space in the layout, you would use 'display: none;'. This property effectively removes the element from the display, but it still occupies space, which can be useful for various purposes.
Add your answer
Loading...

Leave a comment

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