Skip to content

Instantly share code, notes, and snippets.

@sch
Created April 11, 2019 14:57
Show Gist options
  • Save sch/74314e0a3a688da4b9d53bf0155e6e48 to your computer and use it in GitHub Desktop.
Save sch/74314e0a3a688da4b9d53bf0155e6e48 to your computer and use it in GitHub Desktop.
Untitled
.container {
text-shadow: 0.1em 0.1em pink;
}
.larger {
font-size: 30px;
}
.large-shadow {
font-size: 30px;
text-shadow: 0.1em 0.1em pink;
}
<div class="container">
<div>body's font size</div>
<div class="larger">Larger font size doesn't inherit text shadow value</div>
</div>
<div class="large-shadow">Larger font size with shadow applied directly</div>
// alert('Hello world!');
{"view":"split","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