Skip to content

Instantly share code, notes, and snippets.

@rondevera
Created January 4, 2010 00:53
Show Gist options
  • Select an option

  • Save rondevera/268213 to your computer and use it in GitHub Desktop.

Select an option

Save rondevera/268213 to your computer and use it in GitHub Desktop.
Glossy text with CSS in WebKit
<style>
body {
background: #000;
}
p {
margin: 1em auto;
background: -webkit-gradient(
linear, left top, left bottom,
from(#fff), color-stop(50%, #777), color-stop(50%, #666), to(#111));
background: -webkit-linear-gradient(top, #fff, #777 50%, #666 50%, #111);
background: linear-gradient(top, #fff, #777 50%, #666 50%, #111);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-family: Myriad, sans-serif;
font-size: 4em;
text-align: center;
white-space: nowrap;
}
</style>
<p>WebKit</p>
@JassonDO
Copy link
Copy Markdown

thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment