directory
Hide elements – display: None or visibility:hidden
CSS Display – block and inline elements
How to change an element display
Hide elements – display: None or visibility:hidden
You can hide an element by setting the display property to “None” or the visibility property to “hidden”. Note, however, that these two methods produce different results.
Visibility: Hidden An element can be hidden, but the hidden element must occupy the same space as before it was hidden. That is, the element is hidden but still affects the layout.
Copy the code