Created
January 4, 2010 00:53
-
-
Save rondevera/268213 to your computer and use it in GitHub Desktop.
Glossy text with CSS in WebKit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you so much