HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

float

Description

The float property for CSS specifies whether a box should float to the left, right, or not at all.

Syntax

CSS

float: value;

JS

object.style.float = "value";

Values

<'float'> = left | right | none | inherit
left

Generates a block box that is floated to the left.

right

Generates a block box that is floated to the right.

none

Not floated.

inherit

Specifies the same value as the parent.

Initial

none

Examples

1 · left

2 · none

3 · right

4 · JS