CSS float Property Reference

The CSS float property is a standard property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

CSS float Property Reference

The CSS float property is a standard property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

float overview

The CSS float property is a standard property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

float formal syntax
FieldValue
Formal syntaxleft | right | none | inline-start | inline-end
Initial valuenone
Applies toallElementsNoEffectIfDisplayNone
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Positioned Layout
StatusStandard

Practical examples

These declarations demonstrate valid ways to set float. The initial and inherit global keywords remain available even when a property-specific value is preferable.

float live example
CSS .reset-example { float: initial; } .inherit-example { float: inherit; } @supports (float: initial) { .supported { float: initial; } }

Description

The CSS float property is a standard property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: float
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies