I have the following CSS and markup on my site which produces an underline when I hover over the Account
link.
By default, the underline is shown one pixel clear of the text. Is it possible to have the underline directly under the text without the one pixel clearance.
I would like this for all links on my site, if possible.
a:active {
outline: none;
}
a.current {
text-decoration: underline;
color: #000000;
outline: none;
}
a:hover, a.active {
color: #000000;
outline: medium none;
text-decoration: underline;
}
<a href="http://www.ayrshireminis.com/account/login/">Account</a>
Yes, you can use a bottom border, but you need to enable inline-block styling in order to adjust the line-height of the anchor properly:
jsFiddle DEMO