Skip to content

Instantly share code, notes, and snippets.

@emanuer
Last active December 15, 2015 07:48
Show Gist options
  • Save emanuer/5225672 to your computer and use it in GitHub Desktop.
Save emanuer/5225672 to your computer and use it in GitHub Desktop.
text gets an "inset" style resets the color of the text only for modern browsers > ie8 the order of the text-shadow properties is essential: "inner shadow" -› "text color" -› "drop shadow"
.inset_text { color: hsla(0,0%,0%,0); /* color reset */
text-shadow: 1px 1px 1px hsla(0,0%,100%,.4), /* inner shadow */
0 0 hsla(0,0%,0%,.9), /* text color */
1px 1px hsla(0,0%,100%,.5); /* drop shadow */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment