Gerador de Flexbox
Organize um layout flexível real. Ajuste o contêiner e cada item, teste diferentes larguras e obtenha o código CSS, HTML ou Tailwind.
Prévia em tempo real
960 × 320 px · Selecione um item na prévia para editá-lo.
Item 1
Item 2
Item 3
Itens
Até 12 itens. É necessário pelo menos um item.
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: stretch;
align-content: stretch;
gap: 16px;
padding: 24px;
height: 320px;
box-sizing: border-box;
}
.item-1 {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 180px;
order: 0;
align-self: auto;
min-width: 0;
padding: 16px;
box-sizing: border-box;
border-radius: 12px;
overflow-wrap: anywhere;
background: #dbeafe;
color: #172554;
}
.item-2 {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 180px;
order: 0;
align-self: auto;
min-width: 0;
padding: 16px;
box-sizing: border-box;
border-radius: 12px;
overflow-wrap: anywhere;
background: #bfdbfe;
color: #172554;
}
.item-3 {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 180px;
order: 0;
align-self: auto;
min-width: 0;
padding: 16px;
box-sizing: border-box;
border-radius: 12px;
overflow-wrap: anywhere;
background: #93c5fd;
color: #172554;
}Tudo permanece no seu navegador.
Ferramentas relacionadas
Referências de formatos
Página da ferramenta atualizada: