visibility

visibility

CSS visibility Property
The CSS visibility property is used to hide content while maintaining the real estate it would occupy in the document layout. It will make the element disappear but its real estate remains. In order to let other page elements occupy the real estate where invisible content resides, use the display property with a value of 'none' instead of the visibility property set to 'hidden'.
CSS CODE EXAMPLE
<style type="text/css">
.divClass {
    background: #C6E2FF;
    border: #09F 1px solid;
    height: 30px;
}
#div2 { visibility: hidden; }
</style>
<div id="div1" class="divClass">div content ...</div>
<div id="div2" class="divClass">div content ...</div>
<div id="div3" class="divClass">div content ...</div>
 
div content ...
div content ...

Possible Values:

hidden
Hide the element.

visible
Show the element.


Related Material

display

Related Posts :

  • text-shadow text-shadow CSS text-shadow Property The CSS text-shadow property is used to re… Read More...
  • visibility visibility CSS visibility Property The CSS visibility property is used to hide … Read More...
  • right right CSS right Property The CSS right property is used to offset an element's … Read More...
  • z-index z-index CSS z-index Property The CSS z-index property is used to layer elements… Read More...
  • top top CSS top Property The CSS top property is used to offset an element's top po… Read More...

0 Response to "visibility"

Post a Comment