Skip to content

Instantly share code, notes, and snippets.

@DmitryMyadzelets
Created February 2, 2016 14:23
Show Gist options
  • Save DmitryMyadzelets/9640b2a6ea4c9e1b1a5f to your computer and use it in GitHub Desktop.
Save DmitryMyadzelets/9640b2a6ea4c9e1b1a5f to your computer and use it in GitHub Desktop.
Hyperlink decoration
<style>
a:link.new-link {
text-decoration: none;
color: inherit;
box-shadow: inset 0 -0.5em 0 yellow;
}
</style>
<p>Lorem ipsum dolor sit amet, <a href="">consectetuer</a> adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis <a href="" class="new-link">parturient montes</a>, nascetur ridiculus mus. Donec qu</p>
https://jsfiddle.net/6nd619uo/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment