Flex Container Properties

Visual Preview

1
2
3

Generated CSS

About CSS Flexbox

CSS Flexbox is a layout method that allows you to align and distribute space among items in a container, even when their size is unknown or dynamic. It's ideal for building responsive layouts.

The flex container properties control how flex items are laid out:

  • flex-direction: Defines the direction of flex items
  • flex-wrap: Controls whether items wrap to new lines
  • justify-content: Aligns items along the main axis
  • align-items: Aligns items along the cross axis
  • gap: Sets spacing between flex items