-3

I was wondering what's the difference between display none and display hidden in CSS? when are both of them used and in which context?

I want to create an division which remains hidden until i click a button on the homepage.

j08691
  • 204,283
  • 31
  • 260
  • 272

1 Answers1

2

visibility hidden hides the element, but it still takes up space in the layout. display none removes the element from the document. It does not take up any space.