Responsive product page using some click event in react.js
Design comparison
Solution retrospective
For the links in the nav-bar, according to the original design, anytime one hover over each link it displays a border at the bottom of the link. Now my question is how can one make such a border have some spacing at the bottom of the element (as in, it looks as if there is a margin(some spaces) between the link element and the border at its bottom)
Community feedback
- @kabir-afkPosted about 1 year ago
hey, not much fluent in tailwind CSS, but this might help
<li className="link capitalize text-Dark-grayish-blue text-lg border-b-4 border-transparent hover:border-blue-500"> <a href="#">collections</a> </li>
what this'll do is add blue border in the bottom of link when hovered on... you can change it to whatever the design requires it to be....with some
py
andtransition
it'll look clean and smooth . . . hope I was able to help . . .keep the grind !! 💪💪Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord