I'm currently working on a project that requires implementing custom-style tabs. I'm facing challenges in customizing the borders of the tabs, particularly rounding the red bottom border and adding space between the right border and bottom border while maintaining the height equal to the text in the tab link. I've attached a reference image and code snippet showcasing what I've achieved so far for better understanding. Any suggestions or assistance would be highly appreciated. Please note: The Bootstrap version used is 5.0
<link
href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="51333e3e25222523302111647f617f63">[email protected]</a>/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<style>
.categories {
padding-top: 25px;
background-color: #f5f6fa;
}
.categories .category__item {
border-right: 1px solid #dcdcdc;
}
.categories .category__link {
color: #0b1320;
font-size: 24px;
opacity: 0.6;
padding: 0 34px 14px 34px;
transition: none;
}
.categories .category__link.active {
background: transparent;
border: none;
color: #000;
opacity: 1;
font-weight: bold;
border-bottom: 5px solid red;
}
</style>
<ul
class="nav justify-content-center nav-tabs categories"
id="myTab"
role="tablist"
>
<li class="nav-item category__item" role="presentation">
<button
class="nav-link category__link active"
id="home-tab"
...
<script
src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e4868b8b909790968594a4d1cad4cad6">[email protected]</a>/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>