You have the option to utilize the ::after pseudo element to insert content and position it as needed. Here is a snippet of code where I made some adjustments to show the border 5px below:
Below is the section I have modified:
li.active {
position: relative; // Include position: relative
border-bottom: 3px solid #333; /* grey border */
}
li.active:after {
position: absolute; // position the pseudo element
content: '';
border-bottom: 3px solid #333; /* grey border */
width: 100%;
bottom: -8px; // Modify this value for desired distance
left: 0;
}
The remaining code can be found below:
/* CSS code snippet */
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<ul class="nav nav-tabs" id="myTab">
<li class="active green"><a href="#green-ribbon"> </a></li>
<li class="yellow"><a href="#yellow-ribbon"> </a></li>
<li class="red"><a href="#red-ribbon"> </a></li>
<li class="white"><a href="#white-ribbon"> </a></li>
<li class="blue"><a href="#blue-ribbon"> </a></li>
</ul>