Skip to content

Instantly share code, notes, and snippets.

@smmurf
Created May 8, 2012 15:14
Show Gist options
  • Save smmurf/2636142 to your computer and use it in GitHub Desktop.
Save smmurf/2636142 to your computer and use it in GitHub Desktop.
Пунктирное подчеркивание ссылки
/**
* Пунктирное подчеркивание ссылки
*/
a {
color: #00e;
text-decoration: none;
background: linear-gradient(left, #00e, #00e 50%, transparent 50%) 0 100% repeat-x;
background-size: 2px 1px;
}
a:hover {
color: red;
background: linear-gradient(left, red, red 50%, transparent 50%) 0 100% repeat-x;
}
<p>
<a href="/">ссылка</a>
</p>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment