---
extends: _layouts.markdown
title: "Display – Flexbox"
category: "Flexbox"
---
# Display
Utilities for creating flex containers.
@include('_partials.feature-badges', [
'responsive' => true,
'customizable' => false,
'hover' => false,
'focus' => false
])
| Class |
Properties |
Description |
| .flex |
display: flex; |
Create a block-level flex container. |
| .inline-flex |
display: inline-flex; |
Create an inline flex container. |
## Examples
### Flex
Use `.flex` to create a block-level flex container:
@component('_partials.code-sample')
@endcomponent
### Inline flex
Use `.inline-flex` to create an inline flex container:
@component('_partials.code-sample')
@endcomponent
## 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')
@endslot
@slot('sm')
@endslot
@slot('md')
@endslot
@slot('lg')
@endslot
@slot('xl')
@endslot
@slot('code')
@endslot
@endcomponent