Root: WRM Database > Information Technology > Programming Languages > CSS > Properties > "display" Property > The CSS "display" Property



The CSS "display" Property


The display property specifies the type of box an element should generate.

Default value: inline
Inherited: no
Version: CSS1
JavaScript syntax: object.style.display="inline"





Here's an example for a div using the CSS "display" property:

White Root Media

node_middle_plusCCNA

node_middle_plusCSS


Here's the code:

<div style="border:0px solid white;font-size:19px;display:inline;" class="dh-white_root_media">White Root Media</div>
<div style="border:0px solid white;font-size:19px;display:inline;" class="dh-ccna"><img style="vertical-align:top;border:0px solid white;" src="../images/node_middle_plus.gif" width="16" height="22" alt="node_middle_plus" title="node_middle_plus" border="0" />CCNA</div>
<div style="border:0px solid white;font-size:19px;display:inline;" class="dh-css"><img style="vertical-align:top;border:0px solid white;" src="../images/node_middle_plus.gif" width="16" height="22" alt="node_middle_plus" title="node_middle_plus" border="0" />CSS</div>







References

http://www.w3schools.com/css/pr_class_display.asp