Hello, I'm trying to align the line under my menu that was created using a pseudo element.
Here is the HTML code:
.nav-link.active {
color: #482683;
font-size: 14px;
}
.nav-link.active::after {
content: '';
display: block;
width: 22px;
height: 2px;
background: #482683;
margin-top: 27px;
}
This is what currently appears:
https://i.sstatic.net/DuPSu.png
I want it to appear centered like this:
https://i.sstatic.net/WoEWM.png
The alignment of the line depends on which element is clicked: "Selection de variable", "Analyse", "Benchmark des models" or "RESULTATS".
I am working with Bootstrap.