admin管理员组文章数量:1384512
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:
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):
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:
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./qksxyrh24P
Share Improve this question asked Sep 29, 2021 at 14:48 PelekePeleke 9613 gold badges11 silver badges26 bronze badges1 Answer
Reset to default 31>>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/t5mfs1hy/
本文标签: javascriptHow to add arrows to elements with Tailwind CSSStack Overflow
版权声明:本文标题:javascript - How to add arrows to elements with Tailwind CSS? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744455864a2606988.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论