The visibility of a positioned element determines whether the user can see the element. Visibility is useful for temporarily hiding an element, which you might want to do when, for example, a script needs time to calculate the element position or display simple transition effects.
You can set the visibility by using the visibility property. The following example uses the visibility property to make the DIV element invisible:
<p>A paragraph above the div element</p> <div id="Mydiv" style="position: absolute; top: 50px; left: 50px; height: 100px; width: 100px; visibility: hidden;"></div> <p>A paragraph below the div element</p>