Categories

float

Ammy Brown März 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.

Bookmarken den permalink.

Submit a ticket

Sollte Ihre Frage durch die Tutorials nicht ausreichend beantwortet worden sein, benutzen Sie bitte den folgenden Link, um sich an unser Beratungsteam (Support) zu wenden. Wir bieten Ihnen unsere Hilfe und Unterstutzung an. 24 Stunden am Tag, 7 Tage die Woche!
Ticket Einrichten

Kommentare sind geschlossen