Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

160
Vistas
I want to make my box offset, I tried putting the property but nothing happens. I use Tailwind & React

this is the code i use in my CallToAction.js, i put -top-28:

<div className="border text-white h-[226px] w-auto mb-[389px] bg-brand-quaternary border-brand-primary rounded-lg place-items-center grid grid-cols-4 -top-28">

i want to make it like this: !pic 1]1

but i get this: pic 2

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Try adding mt-[-50%] instead of -top-28. Top work with position property like relative and absolute. You can also use -top-28 but you have to add relative or absolute class.

about 4 years ago · Juan Pablo Isaza Denunciar

0

Are you sure you need -top-28? Try it without the dash top-28

<div className="border text-white h-[226px] w-auto mb-[389px] bg-brand-quaternary border-brand-primary rounded-lg place-items-center grid grid-cols-4 top-28">

I took if from here- https://tailwindcss.com/docs/top-right-bottom-left#basic-usage

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda