Flexbox ジェネレーター
実際のフレックスレイアウトを操作できます。コンテナーや各アイテムを調整し、さまざまな幅で確認してから、CSS、HTML、Tailwind のコードを取得しましょう。
ライブプレビュー
960 × 320 px · プレビュー内のアイテムを選択して編集します。
アイテム 1
アイテム 2
アイテム 3
アイテム
アイテムは最大 12 個です。最低 1 個必要です。
.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;
}すべての処理はブラウザー内で完結します。
関連ツール
形式の参考資料
ツールページの更新日: