mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
3.1 KiB
3.1 KiB
| extends | title | category |
|---|---|---|
| _layouts.markdown | Display – Flexbox | Flexbox |
Display
Utilities for creating flex containers.
Flex
Use .flex to create a block-level flex container:
@component('_partials.code-sample')
1
2
3
Inline flex
Use .inline-flex to create an inline flex container:
@component('_partials.code-sample')
1
2
3
Responsive
To control the display property of an element at a specific breakpoint, add a {breakpoint}: prefix to any existing display utility class. For example, use md:inline-flex to apply the inline-flex utility at only medium screen sizes and above.
For more information about Tailwind's responsive design features, check out the Responsive Design documentation.
@component('_partials.responsive-code-sample') @slot('none')
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3