I am currently working on applying custom CSS styles to the Bootstrap navbar in order to have the link text underlined when hovered over, with a fade-in effect as well.
To see what I have accomplished so far, you can view it here: https://jsfiddle.net/xfddh0r5/
.navbar-default {
background-color: #fff;
}
.navbar-default .navbar-nav > li {
background-color: #fff;
}
.navbar-default .navbar-nav > li > a {
color: #333;
border-bottom: 1px solid transparent;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
background-color: #fff;
color: #439348;
border-bottom: 1px solid #439348;
}
Here are two issues that I have encountered:
- The underline is displaying at the bottom of the navbar instead of directly below the text.
- The clickable area for the menu items seems larger than expected, ideally just the text should be linked.
If anyone has any insights into why these problems are occurring, I would greatly appreciate your input. Thank you!