To clarify the situation: The "underline" mentioned is actually generated using a pseudo element :after
on the link itself. It remains present even when the link is not being hovered over; it simply has a transparent background at that time, making it invisible. Upon hovering (:hover
), the background color of this pseudo element changes to #ffffff
, revealing the underline effect gradually rather than abruptly.
The CSS rule responsible for displaying the "underline" is as follows:
header .navbar-default ul.navbar-nav li a:hover:after {
background: #ffffff;
}
If you modify it to
header .navbar-default ul.navbar-nav li a:hover:after {
background-color: transparent;
}
the underline will remain invisible even during the hover state. You can always revisit and re-enable it if needed in the future!