Flexbox Shorthand Builder

Build a validated CSS flex grow/shrink/basis declaration.

Workbench

Inputs stay on this page.

How to use Flexbox Shorthand Builder

  1. Fill in the fields:

    • Flex grow: 0 to 100.
    • Flex shrink: 0 to 100.
    • Flex basis. Use auto, content, 0, or a non-negative px, %, or rem value.
  2. Press “Build flex shorthand”.

  3. Copy the css source, or download it as flex.css.