JSSTag.display (Property)

Controls the display visibility of an object.


CSS level - 1
JavaScript - 1.2
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:NmyJSSTag.display
NmyJSSTag.display = aControl
CSS syntax:display: aControl
Argument list:aControla display control value

The JSSTag.display property corresponds to the display CSS property.

This property controls the way that a styled element is displayed on-screen. It can cause the element to appear as a block item, something that is inline, a list or other possibilities. The following values are accepted:

Elements having the display property set to "block" will be forced to start on a new line.

The "inline" value keeps items running together on the same line.

Setting the display property to "none" will completely hide an item.

The other property values are quite complex and beyond the scope of our coverage here and are documented thoroughly in other works that specifically cover the CSS presentation styling standard. In any case, the whole JSS style complex is deprecated and will likely fall into disuse.

The default value for this property is "inline".

This value is not inherited from its parent container element.


See also:style.display