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

606
Visualizações
How to add arrows to elements with Tailwind CSS?

I have a navbar that contains a Search field and a Social Network dropdown which both show up below the navbar if they are active. I saw on other websites small "arrows" that connect the second row elements visually with the first one like this: enter image description here

How can I achieve the same and always make sure that the arrow is also pointing to the correct parent element (visually)? This is my navbar (somehow the JavaScript doesn't work): https://play.tailwindcss.com/qksxyrh24P

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

1>>create a div with same height and width and rotate it by 45 deg.

2>>make it's postion absolute z indiex of 2 and same color as your dropdown field

3>> make sure to add some space between your search field and dropdownfield

4>> use top left properties to place it appropriatly

5>> then just add show class that you are using to show or hide the dropdown link

https://jsfiddle.net/t5mfs1hy/

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