description & Usage
We use the float property to float an element to the right and left.
Informations
# | Description |
---|---|
Default Value | none |
Inherited | no |
Animatable | no |
Version | CSS1 |
JavaScript syntax | object.style.cssFloat="left" |
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
float |
Syntax
Values
Values | Description |
---|---|
none | default |
left | The element floats to the left. |
right | عنصر در سمت راست شناور می شود. |
initial | Adds this value to its default property. |
inherit | It inherits this value from its parent tag. |