--- title: float slug: Web/CSS/float tags: - CSS - CSS Referenz translation_of: Web/CSS/float ---
{{ CSSRef() }}
Die float
Eigenschaft bestimmt, ob ein Element aus dem normalen Fluss herausgelöst werden soll und nachfolgende Inhalte auf der linken oder rechten Seite des gefloateten Elements platziert werden sollen.
none
float: left | right | none | inherit
<style type="text/css"> div { border: solid red; max-width: 70ex; } h4 { float: left; margin: 0; } </style> <div> <h4>HELLO!</h4> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </div>
Spezifikation | Status | Kommentar |
---|---|---|
{{SpecName('CSS Logical Properties', '#float-clear', 'float and clear')}} | {{Spec2('CSS Logical Properties')}} | Adds the values inline-start and inline-end . |
{{SpecName('CSS3 Box', '#float', 'float')}} | {{Spec2('CSS3 Box')}} | Lots of new values, not all clearly defined yet. Any differences in behavior, unrelated to new features, are expected to be unintentional; please report. |
{{SpecName('CSS2.1', 'visuren.html#float-position', 'float')}} | {{Spec2('CSS2.1')}} | No change |
{{SpecName('CSS1', '#float', 'float')}} | {{Spec2('CSS1')}} | Initial definition |
{{ languages( {"en": "en/CSS/float", "fr": "en/CSS/float", "es": "es/CSS/float", "pl": "pl/CSS/float"} ) }}