×

Welcome to TagMyCode

Please login or create account to add a snippet.
2
0
 
0
Language: HTML
Posted by: Silvia
Added: Jul 13, 2011 2:47 PM
Modified: Jul 13, 2011 2:49 PM
Views: 179
  1. <h1>Example</h1>
  2.  
  3. <div style="border: 1px solid black; height: 60px; visibility: hidden;">
  4.     This DIV is hidden, but keep the space of its original size in the document.
  5. </div>
  6.  
  7. <div style="border: 1px solid black; height: 60px; display: none;">
  8.     This DIV is hidden, and is completely removed from the document. The element is still in the source code and it's accessible by scripts, such as JavaScript.
  9. </div>