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

184
Views
Aplicar estilo a un componente de reacción en un componente con estilo

Estoy tratando de alinear el componente en el centro. Pero soy incapaz de hacerlo.

Fragmento de componente:

 <Grid item xs={12}> <Box marginTop={2} marginBottom={2} display="flex"> <Box width="100%"> <Divider /> </Box> <Box width="100%"> <OrLabel>OR</OrLabel> </Box> <Box width="50%"> <Divider /> </Box> </Box> </Grid>

estilo de componente:

 export const OrLabel = styled.span` position: absolute; margin-top: -10px; margin-left: -10px; `;

ingrese la descripción de la imagen aquí

Probé la position: center en el componente con estilo, pero también dio el mismo resultado. ¿Cómo podría mover el "O" al centro?

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

0

por favor pruebalo:

 <Box style{{display:"flex",alignItem:"center",justyfyContent:"center"}} width="100%"> <OrLabel>OR</OrLabel> </Box>
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!