SyntaxFix
Write A Post
Hire A Developer
Questions
Thanks to this question. I wanted the exact opposite, i.e a hidden div should still occupy its space on the browser. So, I used visibility: hidden instead of display: none.
visibility: hidden
display: none