JSONPath Tester
Run JSONPath expressions against a document and see every match live.
Learn and generate flexbox layouts with a live, interactive preview.
·
The Flexbox Generator puts every container and item property on a control with a live preview that labels both axes — so the moment flex-direction swaps which property controls which direction is visible rather than surprising.
Flexbox has a small number of properties and a large number of ways to get them confused. This puts every container property on a control with a live preview, so you can see what justify-content does rather than remembering it.
The part that unsticks most people is the relationship between the axes. justify-content works along the main axis and align-items across the cross axis, and swapping flex-direction to column swaps which is which — so the property that was controlling horizontal position is suddenly controlling vertical. The preview labels both axes and updates their direction with the setting, which makes that swap visible instead of surprising. Item properties are editable per box too.
The preview names the main and cross axis and redraws them when direction changes, which is the thing that unsticks most people.
flex-grow, flex-shrink, flex-basis, align-self and order on individual boxes, not just the container.
The generated CSS contains only what you changed, so it is short enough to actually read.
What each one does, in a line, where you are changing it.
A flex item will not shrink below its content unless min-width is zero — the commonest flexbox bug, called out where it applies.
Row or column — and watch which axis each property then controls.
justify-content, align-items, align-content and wrap, each with a live preview.
flex-grow, flex-shrink, flex-basis, align-self and order per box.
Container and item rules, with the defaults omitted.
justify-content positions items along the main axis and align-items across the cross axis. With flex-direction: row the main axis is horizontal; switch to column and they swap, which is the single most common source of confusion.
It is shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0%. The zero basis is the important part — it makes items share the space equally regardless of their content, which flex-grow alone does not.
Usually min-width. A flex item has min-width: auto by default, which stops it shrinking below its content. Set min-width: 0 and it will.
Flexbox for one dimension — a row of buttons, a navigation bar, centring something. Grid for two dimensions at once, where rows and columns both need controlling. They compose well together.
What people who use the Flexbox Generator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Flexbox Generator. It takes half a minute and no account.
Write the first reviewRun JSONPath expressions against a document and see every match live.
Press any key and see event.key, event.code and the modifier state.
Encode and decode Base32, including the Crockford and hex variants.
Build a Content-Security-Policy header directive by directive.
Turn a block of text into a comment in any language, wrapped and aligned.
Find what runs on a port, with a note on whether it should be exposed.
Generate serde-ready Rust structs from a sample JSON document.
Strip whitespace and optionally comments from XML, and see the bytes saved.