Forum Moderators: not2easy
A number of times on the home page they have links which are a dotted underline. In the hover state the underline gets a few shades darker but the text remains the same colour.
Does anyone know how to do this?
Regards.
Chris.
text-decoration property to determine blink, underline, overline, line-through. When you want something a little funkier, switch your anchor to
text-decoration: none; and use border-bottom: 1px Dotted #hex; instead. Note, this property value will extend when you have an
a img, whereas text-decoration will not.
Only one problem, there doesn't seem to be any regularity with the dots at all, they seem to be unequally spaced and some extend way past the text on some links.
Do you know why this is, and how it can be prevented, it looks so much smoother on the uxmag site. No images are used at all around the links in this div.
Regards.
Chris.
If you look in that site's CSS, you will see that it uses images for the background of the links:
a, a:visited {
color: #003366;
text-decoration: none;
background-image: url(/_images/link_dotted.png);
background-repeat: repeat-x;
background-position: bottom;}
a:hover {
background-image: url(/_images/link_solid.png);}