FrontendDeveloper.in

CSS question detail

What is the difference between `display: none` and `visibility: hidden`?

display: none removes the element from layout flow. visibility: hidden keeps layout space but hides the element visually.

Both hide visually, but layout and accessibility behavior differ.

Back to all CSS questions
Get LinkedIn Premium at Rs 399