Create flexible layouts with CSS Flexbox
/* 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;
}
/* Container */
<div className="flex justify-start items-stretch flex-nowrap gap-4">
/* Items */
<div className="grow-0 shrink-1 basis-auto self-auto">