+ 2
What are some example use-cases for visibility:hidden?
My first thought is to hide a caption informing that required information has not been filled in on a form. Is that a valid use-case?
2 Answers
+ 9
Absolutely, and it wouldn't mess with other elements adjacent. If you had used "visibilty: none" anything around the element would start looking funny, as the space would no longer be preserved. Hidden keeps the space there, as in the area is transparent without the element visible to the eye. I hope that made sense lool.
0
Totally made sense, thank you!