Pembuat Flexbox
Susun tata letak flex yang sesungguhnya. Atur kontainer dan setiap item, coba berbagai lebar, lalu ambil kode CSS, HTML, atau Tailwind.
Pratinjau langsung
960 × 320 px · Pilih item dalam pratinjau untuk mengeditnya.
Item 1
Item 2
Item 3
Item
Maksimal 12 item. Setidaknya satu item diperlukan.
.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;
}Semua data tetap di browser Anda.
Alat terkait
Referensi format
Halaman alat diperbarui: