Varies for floated, positioned, and root elements (see CSS2.1, section 9.7); otherwise, same as declared value
Defines the kind of display box an element generates during
layout. Gratuitous use of
with a document type such as HTML can be tricky, as it upsets the
display hierarchy already defined in HTML, but it can also be very
useful. In the case of XML, which has no such built-in hierarchy,
display is indispensable.
none is often used
to make elements “disappear,” since it removes the element and all of
its descendant elements from the presentation. This is true not just
in visual media, but in all media; thus, setting an element to
display: none will prevent it from
being spoken by a speaking browser.
run-in was long a part of CSS2.1 but was dropped in early 2011 because of inconsistencies among browsers. It is still listed as part of ...