Prev | Current Page 392 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

1 inline NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL PARTIAL PARTIAL
This property controls the type of box
an element generates.
The computed value may differ from
the specified value for the root element
and for floated or absolutely positioned
elements; see The Relationship Between
display, position, and float (p. 184) for
details about the relationship between
the display, float (p. 269), and
position (p. 267) properties.
Example
The following rule will cause a elements
that are descendants of the .menu element
to render as block elements instead of
inline elements:
.menu a {
display: block;
}
Note that a user agent style sheet may override the initial value of inline for some
elements.
Value
block block makes the element generate a block box.
inline inline makes the element generate one or more inline
boxes.
inline-block inline-block makes the element generate a block box
that??™s laid out as if it were an inline box.
inline-table inline-table makes the element behave like a table that??™s
laid out as if it were an inline box.


Pages:
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404