Prev | Current Page 414 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


The default behavior is to make the
overflowing content visible, but it can
be changed so that the content is
clipped to the confines of the element??™s
box, optionally providing a mechanism
for scrolling the content.
Example
This style rule makes the pre element type
in HTML generate a fixed-sized box with
visible scrollbars:
pre {
width: 40em;
height: 20em;
overflow: scroll;
}
SPEC
version initial inherited
CSS2 visible NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL FULL
281 Layout Properties
If the overflow property is applied to the body or html elements in an HTML
document, the user agent may apply it to the viewport. This does not apply to
XHTML, though.
If a scrollbar needs to be provided, the user agent should insert it between the
element??™s outer padding edge and its inner border edge. The space occupied by the
scrollbar should be subtracted (by the user agent) from the computed width or
height, so that the inner border edge is preserved.
Boxes with an overflow value other than visible will expand vertically to enclose
any floated descendant boxes.


Pages:
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426