Prev | Current Page 404 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Note that even if a box in the normal
flow is hidden, it still affects the layout
of other elements, unlike the behavior
that occurs when we suppress box
generation altogether by setting display
to none. Descendant boxes of a hidden box will be visible if their visibility is set
to visible, whereas descendants of an element for which display is set to none
can never generate boxes of their own.
Example
This style rule makes the element with ID
"dynamic" generate an invisible box. It can
be made visible using client-side scripting:
#dynamic {
visibility: hidden;
}
The initial value and the inheritability were changed in CSS2.1 to address the
previously undefined state for the root element.
Value
visible The value visible makes the generated boxes visible.
hidden The value hidden makes the generated boxes invisible without removing
them from the layout. Descendant boxes can be made visible.
collapse The value collapse is only meaningful for certain internal table objects:
rows, row groups, columns, and column groups.


Pages:
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416