Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

249
Vistas
How to add white space in css flex?

Hello good afternoon and evening, I would like someone's help since I can't find a solution to this "problem", what I want is to make each "px" a blank space, through the flex property of css , I will put an image so that you can see how my idea is ;). Thanks a lot

enter image description here
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Hi, the flex CSS property is really super powerful depending on how you use it and what your needs are. In my example for the items I do not use absolute values to assign them a specific size. I do it with respect to the visual field that the container occupies. Test the code in a browser and see how it behaves. With the code inspector you can play with many values.

 .contenedor { display: flex; height: 100vh; width: 100vw; background: #000; flex-direction: column; flex-wrap: wrap; justify-content: space-around; align-items: center; } .item { display: flex; background: #dadada; width: 30vh; height: 30vw; align-items: center; justify-content: center; }
 <div class="contenedor"> <div class="item">ITEM 1</div> <div class="item">ITEM 2</div> <div class="item">ITEM 3</div> <div class="item">ITEM 4</div> <div class="item">ITEM 5</div> <div class="item">ITEM 6</div> </div>
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda