a {
border-bottom : 1px dashed #000000;
text-decoration: none;
color: #000000;
}
a:hover{
border-bottom: 1px solid #000000;
}
You'll have to put this code in your code. In the 'a' tag, we are removing underline because by default the anchor tags are underlined. We are not really using the underline property for ti\his feature. Instead we are using the border property to highlight the border bottom. It's dashed normally and solid on mouseover.
Here's a demo:
This is dashed link
while this is the standard link
No comments:
Post a Comment