b2KIT

CSS Flexbox Playground

Experiment with Flexbox properties visually and copy the generated CSS code.

Container Properties

CSS Code
.container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
}

Part of the upcoming MAPb2 suite -- Visual Thinking Tools

How to Use CSS Flexbox Playground

  1. 1

    Set container properties

    Adjust flex-direction, justify-content, align-items, and wrap.

  2. 2

    Configure flex items

    Set flex-grow, flex-shrink, and flex-basis on individual items.

  3. 3

    See live preview

    Watch the layout update in real time as you change values.

  4. 4

    Copy the CSS

    Click copy to grab the flexbox CSS for your stylesheet.

Related Tools