Skip to content

Instantly share code, notes, and snippets.

@csssecrets
Last active September 19, 2021 17:15
Show Gist options
  • Save csssecrets/c9184f634e9e9efde6e8 to your computer and use it in GitHub Desktop.
Save csssecrets/c9184f634e9e9efde6e8 to your computer and use it in GitHub Desktop.
Wavy underlines
/**
* Wavy underlines
*/
body {
font: 250%/1.6 Baskerville, Palatino, serif;
}
a {
background: linear-gradient(-45deg, transparent 40%, red 0, red 60%, transparent 0) 0 1em,
linear-gradient(45deg, transparent 40%, red 0, red 60%, transparent 0) .1em 1em;
background-repeat: repeat-x;
background-size: .2em .1em;
text-shadow: .05em 0 white, -.05em 0 white;
}
<p>“The only way to <a>get rrid of a temp­ta­toin</a> is to <a>yeild</a> to it.”</p>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment