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

258
Views
¿Cómo puedo mostrar la tarjeta que compré Antd al lado de la otra?

ingrese la descripción de la imagen aquí

 import { categories } from './data/categories' import { useState } from 'react' import {Card} from 'antd' import './App.css'; import image1 from './assets/images/Resim.png'; const { Meta } = Card; const CategoryCard = () => { const [categoriesList, setCategoriesList] = useState(categories) return ( <> {categoriesList.map((categori ,key)=>( <div className='flex-container '> <div className='flex-div'> <Card style={{ width: 240 }} cover={<img alt="example" src={image1} />} > <Meta title={categori.name} description= {categori.description}/> </Card> </div> </div> ))} </> ); } export default CategoryCard

Quiero alinear las tarjetas de a tres una al lado de la otra, traté de hacerlo usando display-flex, pero no pude, ¿me pueden ayudar? Los códigos css que escribí están arriba.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

su código es confuso, de todos modos, si desea alinearlos uno al lado del otro, simplemente agregue display: flex al elemento principal. (Naturalmente, los elementos secundarios se alinearán horizontalmente cuando agregues display flex a su elemento principal, y si deseas que se alineen verticalmente, simplemente agrega flex-direction: column;)

 .flex-div{ display: flex; }
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!