1 Floats, Fonts, and Other Style Sheet Property References
2 Fonts
3 More on Fonts
4 Height
| Floats, Fonts, and Other Style Sheet Property References
(Page 1 of 4 )
In the latest part of our continuing series on style sheet properties, you_ll learn about floats, fonts, and more. This article is excerpted from chapter four of Dynamic HTML: The Definitive Reference, Third Edition, written by Danny Goodman (O_Reilly; ISBN: 0596527403). Copyright © 2006 O_Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O_Reilly Media. Alphabetical Property Reference: Float
float IE 4 NN 4 Moz all Saf all Op all CSS 1 Inherited: No Determines on which side of the containing box the element aligns so that other content wraps around the element. When the property is set to none , the element appears in its source code sequence, and at most, one line of surrounding text content appears in the same horizontal band as the element. Due to the prior reservation of float as a keyword in JavaScript, the property name is not available as a style object property name in object models that use JavaScript. Internet Explorer adopted the styleFloat property name; the W3C DOM uses cssFloat . CSS Syntax float: alignmentSide | none Value An alignmentSide is one of the following constants: left | right. Initial Value none Example img.navButton {float: right} Applies To All elements except positioned elements (or generated content). Object Model Reference [window.]document.getElementById("elementID").style.styleFloat [window.]document.getElementById("elementID").style.cssFloat
|