CSS Flexbox Playground

Your workspaceProcessed on your device
Flex container
Flex items
Live flex layout
Lead
Support
Links

Preview dimensions stay in this workspace. The export adapts to the available space in your own page.

Generated output

A few things to know.

One flex container with up to 12 items and bounded numeric settings. Preview width and height are separate from the exported layout. Your work stays in the browser.

  1. Load Card row and compare a preview width of 408 pixels with 407 pixels. The third card moves to a new line at the narrower width.
  2. Change container direction, wrapping, alignment, gap or padding. Select an item to change its flex sizing and cross-axis alignment.
  3. Copy the generated CSS and HTML into your project. Use Report to save the chosen values separately.