Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda