Floats, Fonts, and Other Style Sheet Property References (Page 1 of 4 )
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).