I want to hide everything on my page except a single div. Tried visibility: hidden; but the other divs still take up space.
Any help?
I want to hide everything on my page except a single div. Tried visibility: hidden; but the other divs still take up space.
Any help?
 
    
    display: none; should do the trick.
if you want to get a div to show when you click a button, you could do
function showHidden(){
  document.getElementById("hidden").style.display = "block";
}#hidden{display: none;}<div> click the button to show another div </div>
<button onclick="showHidden()">button</button>
<div id="hidden">hidden div</div>hopefully that helped.
