Visibility
noun
say it: “viz-uh-BIL-ih-tee” /ˌvɪzəˈbɪlɪti/
The CSS property that makes an element invisible or visible again. A hidden element still takes up its space, so nothing around it moves.
What does visibility: hidden do?
visibility: hidden makes an element invisible but keeps its space, so the layout doesn't shift.
.tooltip { visibility: hidden; }
.icon:hover .tooltip { visibility: visible; }
In a sentence
- “The 'Saved' label switches its visibility to visible after the click.”
- “I set the tooltip's visibility to hidden, so it disappeared but the row didn't jump.”
Level: Apprentice · More CSS terms at this level
Updated