|
CSS display Property
Complete CSS Reference
Example
Let a paragraph generate an inline box:
p.inline
{
display:inline;
} |
|
Definition and Usage
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" |
Browser Support

The display property is supported in all major browsers.
Note: Internet Explorer does not support the property values
"inline-table", "run-in", "table", "table-caption", "table-cell",
"table-column", "table-column-group", "table-row", and "table-row-group".
Property Values
| Value |
Description |
| none |
The element will generate no box at all |
| block |
The element will generate a block box (a line break before and after the element) |
| inline |
The element will generate an inline box (no
line break before or after the element). This is default |
| inline-block |
The element will generate a block box, laid out as an
inline box |
| inline-table |
The element will generate an inline box (like
<table>, with no
line break before or after) |
| list-item |
The element will generate a block box, and an inline box
for the list marker |
| run-in |
The element will generate a block or inline
box, depending on context |
| table |
The element will behave like a table (like
<table>,
with a line break before and after) |
| table-caption |
The element will behave like a table caption (like
<caption>) |
| table-cell |
The element will behave like a table cell |
| table-column |
The element will behave like a table column |
|
table-column-group |
The element will behave like a table column group (like <colgroup>) |
| table-footer-group |
The element will behave like a table footer row group |
| table-header-group |
The element will behave like a table header row group |
| table-row |
The element will behave like a table row |
|
table-row-group |
The element will behave like a table row group |
|
inherit |
Specifies that the value of the display property should be inherited
from the parent element |
Related Pages
CSS tutorial: CSS Classification
HTML DOM reference: display property
Complete CSS Reference
Reliable, Affordable, Feature-Rich Web Hosting!
Take the uncertainty out of Web hosting and let
GoDaddy.com put service, performance and value back in. No matter which
hosting type or plan you choose, your site receives 24/7
maintenance and protection in our world-class data center. Plus,
you get the expert, friendly service you deserve, from the
world's largest hostname provider.
With three plans to choose from and
prices starting at just $4.99 per month, GoDaddy.com is sure to have a plan that's
right-sized and right-priced just for you!
All plans feature FREE 24x7 setup, FREE 24x7 monitoring, best-
of-breed routers, firewalls and servers, 24x7 onsite physical security
and access to our exclusive Go Daddy Hosting Connection, THE place
to install over 30 FREE applications. Virtual Dedicated and Dedicated
Server plans also available.
Visit GoDaddy.com today.
Virtual Dedicated, Dedicated Server and unlimited plans also available.
Save 20% on 12 months or more of shared web hosting - Enter code w3s20off at checkout
|