Reputation: 5645
I have a link with a dropdown menu. Problem is that when I click on the link the dropdown opens but there is unwanted border line on the bottom of the link. When i hover on the dropdown link the unwanted bottm line hides. But whenever mouse out from the link the unwanted bottom line displays again.
<div class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="dropdownMenu2" style="color: #333;"><i class="fa fa-gear fa-lg"></i> <span class="caret"></span></a>
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu2">
<li><a href="#"><i class="fa fa-align-left"></i> Reorder Pages</a></li>
<li><a href="#"><i class="fa fa-trash"></i> Delete</a></li>
</ul>
</div>
Upvotes: 1
Views: 1048
Reputation: 12440
Probably border, outline or underline. Try this:
a.dropdown-toggle {
border: none;
outline: none;
text-decoration: none;
}
You can try and see if there is only one border bottom tho and cancel it only in case you want to use other borderlines.
Upvotes: 2
Reputation: 3451
Now you have
.dropdown-toggle:hover {
text-decoration: none;
}
just add
.dropdown-toggle:hover,
.dropdown-toggle:focus {
text-decoration: none;
}
in your css, it resolves issue!
Upvotes: 0
Reputation: 117
In a:toggle Class have Text Decoration . Remove the text decoration.
a:hover {
color: #23527c;
text-decoration: underline;
}
Upvotes: 0