Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
clear
height
width
PROPERTY: float
float
:
left
|
right
|
none
Compatibility:
IE4+ N4+
Version:
Level 1
Inherited:
No
The
float
property allows you to determine where an image will appear within a text or element.
Image and text elements that appear embedded within a text or another element are called floating elements.
left
The
left
value embeds the image within the text and places the left edge of the image on the left side of the text.
right
The
right
value embeds the image within the text and places the right edge of the image on the right side of the text.
none
The
none
value allows the image to simply appear where it occurs within a text.
Code:
img { float: left; }
img { float: right; }
img { float: none; }
or
Code:
<img src="/images/guru.gif" style="float: right;">
<img src="/images/guru.gif" style="float: none;">
Output:
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information