This property defines which side is used for the reference alignment so that text can flow round the other.
Setting the property value to none allows the object to be placed inline according to where it appears in the document source.
The following keywords can be used with this property:
left
right
none
IMG elements in Netscape Navigator 4 do not align in the same way as MSIE browser IMG elements. Since you can't access the style model in the same way, this is maybe a moot point but there are alternative ways to control alignment in each browser. So, assuming you could define the float attribute in both, Netscape Navigator 4 would still not position the IMG objects in the same way.
The JavaScript language reserves the float keyword and so it is dangerous to use it as a property on any object. Because of this, a more consistent control of alignment for IMG objects can be achieved with the align property instead.
Netscape 6.0 supports the cssFloat property which is preferred and which avoids the conflict with the float keyword.
See also: | style.clear, style.styleFloat |
Prev | Home | Next |
style.filter | Up | style.floatStyle |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |