Borders and More with Style Sheets - Alphabetical Property Reference: Bottom
(Page 3 of 4 )
bottom
IE 5 NN n/a Moz all Saf all Op all CSS 2
Inherited: No
The CSS specification calls for this property to define the position of the bottom edge of a positioned element’s margin edge relative to the bottom edge of the next outermost block content container; in the case of positioned elements using the root document as the positioning context, dimensions of the containing block are determined by the browser window of an unscrolled document. In other words, for a top-level positioned element, instead of using the bottom of the document as the comparative edge, these browsers use the bottom of the browser window space (the viewport in CSS terminology). As a result, the precise bottom position of the element varies with the user’s browser window size.
caption-side
When the element is relative-positioned, the offset is based on the bottom edge of the inline location of where the element would normally appear in the content.
CSS Syntax
bottom: length | percentage | auto
Value
See the discussion about length values at the beginning of this chapter. Negative lengths may be allowed in some contexts, but be sure to test the results on all browsers. You may also specify a percentage value, which is calculated based on the height of the next outermost container. The setting of auto lets the browser determine the bottom offset of the element box on its naturally flowing offset within the containing box.
Initial Value auto
Applies To All positioned elements.
Object Model Reference
[window.]document.getElementById("elementID").style.bottom
caption-side
IE 5(Mac) NN n/a Moz all Saf all Op all CSS 2
Inherited: Yes
Positions the caption element above or below the tabular content of the enclosing table element. This property supplants some deprecated align property settings of the caption element.
CSS Syntax
caption-side: top | bottom | left | right
Value
One of the four constant values: top | bottom | left | right . The values left and right were removed from CSS2.1.
Initial Value top
Applies To caption elements.
Object Model Reference
[window.]document.getElementById("elementID").style.captionSide
Next: Clear Property >>
More DHTML Articles
More By O'Reilly Media
|
This article is excerpted from chapter four of Dynamic HTML: The Definitive Reference, Third Edition, written by Danny Goodman (O'Reilly; ISBN: 0596527403). Check it out today at your favorite bookstore. Buy this book now.
|
|