| 1 |
--- |
| 2 |
id: Float |
| 3 |
section: foundations-and-styles |
| 4 |
subsection: utility-classes |
| 5 |
---import './Float.css' |
| 6 |
|
| 7 |
## Examples |
| 8 |
|
| 9 |
### Basic |
| 10 |
|
| 11 |
```html |
| 12 |
<div class="pf-v6-u-float-inline-start">Float inline-start</div> |
| 13 |
<div class="pf-v6-u-float-inline-end">Float inline-end</div> |
| 14 |
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Earum, odit fugit eaque ad assuminline-enda fuga alias aut ipsum repudiandae enim pariatur ullam distinctio omnis dolorem at voluptatum saepe, beatae officiis?</p> |
| 15 |
|
| 16 |
``` |
| 17 |
|
| 18 |
## Documentation |
| 19 |
|
| 20 |
### Overview |
| 21 |
|
| 22 |
[Breakpoints](/foundations-and-styles/design-tokens/all-design-tokens) are optional. Breakpoint options include: base (no breakpoint value), `-on-sm`, `-on-md`, `-on-lg`, and `-on-xl`. Example: `.pf-v6-u-float-inline-start-on-lg` |
| 23 |
|
| 24 |
### Usage |
| 25 |
|
| 26 |
| Class | Applied to | Outcome | |
| 27 |
| -- | -- | -- | |
| 28 |
| `.pf-v6-u-float-inline-start{-on-[breakpoint]}` | `*` | Float element inline-start | |
| 29 |
| `.pf-v6-u-float-inline-end{-on-[breakpoint]}` | `*` | Float element inline-end | |