Flexbox Generator

Create flexible layouts with CSS Flexbox

Item 1
Item 2
Item 3
3
1rem

Item Properties

0
1

CSS Code

/* Container */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* Items */
.flex-item {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
}
                            

Tailwind Classes

/* Container */
<div className="flex  justify-start items-stretch flex-nowrap gap-4">

/* Items */
<div className="grow-0 shrink-1 basis-auto self-auto">