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

205
Views
¿Cómo puedo alinear una tabla de arranque?

Estoy tratando de alinear mi tabla de arranque pero no puedo. Lo quiero como clase de arranque 'd-flex justificar-contenido-entre'. si tengo 3 artículos en mi mesa, quiero el primero a la izquierda, el segundo en el medio y el último en el lado derecho. pero aquí tiene lugar a su manera.

código:

 <table class="table table-striped text-center"> <thead> <tr> <th scope="col">product Name</th> <th scope="col">Quantity</th> <th scope="col">Handle</th> </tr> </thead> <tbody> {products.map((product) => ( <tr key={product.id}> <td>{product.name}</td> <td>{product.price}</td> <td> <button className="btn btn-danger">Delete</button> </td> </tr> ))} </tbody> </table>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Parece que desea alinear el texto en las etiquetas <td> en lugar de en toda la tabla. Puede agregar las clases text-left , text-center y text-right a sus etiquetas <td> , respectivamente, o probaría esto en su CSS:

 tr td:nth-child(1) {text-align: left;} tr td:nth-child(2) {text-align: center;} tr td:nth-child(3) {text-align: right;}
 <table class="table table-striped text-center" border="1" style="width:100%;"> <thead> <tr> <th scope="col">product Name</th> <th scope="col">Quantity</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <td>{product.name}</td> <td>{product.price}</td> <td> <button className="btn btn-danger">Delete</button> </td> </tr> </tbody> </table>

about 4 years ago · Juan Pablo Isaza 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!