Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML
IMCreator - Free Website Builder

CSS Float

The CSS float property enables you to determine where to position an element relative to the other elements on the page. When you use the float property, other elements will simply wrap around the element you applied the float to.

Float Example

In this example, we set a <div> element to float:left, which results in the rest of the content wrapping around it.

CodeResult

Feel free to check out the links in the box that's floating to the left of this text. Whether you need web hosting or copy/paste HTML codes, there's bound to be something for you!

Enjoy this page?

  1. Link to this page (copy/paste into your own website or blog):
  2. Link to Quackit using one of these banner ads.

Thanks for supporting Quackit!