Border-bottom

in my navbar link when i click on it i want to show the border bottom as the width of the content but it is taking 100 percent width i have tried using display:inline-block but it did not work"https://talhamustafa1.github.io/easyBankLandingPage/#action2
Easy Bank Landing Page
Web site created using create-react-app
No description
1 Reply
Chooβ™šπ•‚π•šπ•Ÿπ•˜
The exact proper solution depends on the layout of your HTML, but the general idea is to put an extra container around each item with a width of max-content. Put the border on that.
Want results from more Discord servers?
Add your server