Categories

float

Ammy Brown March 14, 2016
No votes yet.
Please wait...

Float is a CSS positioning property. Float is used for wrapping text around images, web page elements/blocks arrangement, creating the page alignment. It specifies whether or not an element should float.

Here is an example of float property in css code:

img {
  float: right;			
}

You can check images below to see how float looks like on the site. Image with the float left property:

float_1

Right aligned image:

float_2

The float property can accept one of the following properties:

  1. Float left indicates that content must float on the left side of the parent element.

  2. Right. The element floats to the right.

  3. None is a default value, indicating that element must not float.

  4. Initial value allows you to set property to its default value.

  5. Inherit. Inherits the element float from the parent item.

  6. Unset float is used in case initial property is not inherited.

Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Comments are closed.