Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 23, 2012 18:51
Show Gist options
  • Save Ricardo-Diaz/3940768 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/3940768 to your computer and use it in GitHub Desktop.
CSS: Underline Inline Link Effect
//Underlined Inline Link
//This is some dummy text to show an inline link.
//Link will have dashes that transform into dotted over hover.
.inline-link-2 {
display: inline-block;
border-bottom: 1px dashed rgba(0,0,0,0.4);
/* Font styles */
text-decoration: none;
color: #777;
}
.inline-link-2:hover { border-bottom-style: dotted; }
.inline-link-2:active { border-bottom-style: solid; }
.inline-link-2:visited { border-bottom: 1px solid #97CAF2; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment