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

119
Views
Centre un div y coloque un div a la derecha dentro de un contenedor

Así que tengo un contenedor que es flexible y quiero agregar 2 div más dentro, de modo que 1 esté centrado y el otro en el borde derecho. ¿Alguien puede ayudar por favor? el contenedor debe ser flexible.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede agregar un div vacío dentro del contenedor principal al principio para que luego pueda usar justify-content: space-between en el contenedor principal. Verifique el código a continuación:

 .parent { display: flex; border: 1px solid green; width: 100%; justify-content: space-between; /* Add this */ } .child { border: 1px solid red; height: 100px; display: flex; align-items: center; justify-content: center; }
 <div class="parent"> <!-- Empty DIV for the sake of justify-content: space-between --> <div></div> <div class="child">CENTER</div> <div class="child">RIGHT</div> </div>

about 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!