Saltar al contenido

Generador de Flexbox

Organiza un diseño flexible real. Ajusta el contenedor y cada elemento, prueba distintos anchos y obtén el código CSS, HTML o Tailwind.

Vista previa en tiempo real

960 × 320 px · Selecciona un elemento en la vista previa para editarlo.

Elemento 1
Elemento 2
Elemento 3

Elementos

Hasta 12 elementos. Se requiere al menos uno.

.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;
}

Todo permanece en tu navegador.

Referencias de formatos

Página de la herramienta actualizada: