Skip to content

Instantly share code, notes, and snippets.

@ramzesimus
Created October 26, 2012 00:04
Show Gist options
  • Save ramzesimus/3956244 to your computer and use it in GitHub Desktop.
Save ramzesimus/3956244 to your computer and use it in GitHub Desktop.
CSS: Text Gradient + Text Shadow
.title {
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9bc7e2), color-stop(100%, #9bc7e2));
background-image: -webkit-linear-gradient(#ffffff,#9bc7e2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: #fff;
position: relative;
text-shadow: none;
}
.title:before {
background: none;
content: attr(data-text);
left: 0;
position: absolute;
text-shadow: 0 3px 0 rgba(0, 0, 0, .3);
top: 0;
z-index: -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment