How to use Visibility Property in CSS?

This property is used to specify whether or not an element is visible. We can set this property to visible (default), hidden or collapse.

hidden –

The element is invisible not removed.

collapse-

This value is only used for table elements. collapse removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content. If collapse is used on other elements, it will be treated as “hidden”.

Ex:-

p { visibility: hidden;}

Hiding an Element with CSS: Display vs Visibility vs Opacity | Magnus Benoni
Tagged : / / / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x