Javascript Reference
Categories: STYLE

javascript STYLE display

@March 15, 2008, 1:22 a.m.
displayFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

Read/Write  

Controls the CSS box type used to render the element. The most common settings for body content dictate whether an element is rendered as a block or inline element. When set to none, the element is hidden, and surrounding content cinches up to fill the space. Some box types are specific to tables and lists.

 
Example
 
document.getElementById("instructionDiv").style.display = "none";
 
Value

Any one display type constant as a string, as supported by various browsers and versions.

 
Display typeIE/WindowsIE/MacFirefox/Netscape/NN
block546
inline546
inline-block5.5n/an/a
none446
run-inn/a56
table-footer-group5.556
table-header-group556
 
Default

Element-dependent.


Powered by Linode.