Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

248
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!