Home » CSS Tutorial » CSS Properties » display
display
CSS Property Info :
| Syntax: |
display: <value> |
| Possible Values: |
block | inline | list-item | none |
| Initial Value: |
block |
| Applies to: |
All elements |
| Inherited: |
No |
CSS Browser Support :
Internet Explorer 4+
Netscape 4+
Opera 3.6+
W3C's CSS Level 1+
CSS Profile 1.0
CSS Property Description :
The display property is used to define an element with one of four values:
block (a line break before and after the element)
inline (no line break before and after the element)
list-item (same as block except a list-item marker is added)
none (no display)
Each element typically is given a default display value by the browser, based on suggested rendering in the HTML specification.
The display property can be dangerous because of its ability to display elements in what would otherwise be an improper format. The use of the value none will turn off display of the element to which it is assigned, including any children elements!
CSS Bugs / Problems :
none
Adapted by style-sheets.com, maker of Style Studio, powerful CSS Editor for Windows.
Copyright © John Pozadzides and Liam Quinn. All rights reserved.
Home » CSS Tutorial » CSS Properties » display
|