Skip to content

Instantly share code, notes, and snippets.

@orjanskoglund1
Last active January 5, 2019 10:19
Show Gist options
  • Save orjanskoglund1/976ebb0ca8f22fd7c909b9b4dc7a1761 to your computer and use it in GitHub Desktop.
Save orjanskoglund1/976ebb0ca8f22fd7c909b9b4dc7a1761 to your computer and use it in GitHub Desktop.
My first pen
<h1>Hello World!</h1>
<h1>Classy Gold Text using only CSS</h1>
<h2>www.driver76.se</h2>
<div class="gold"></div>
@import url(https://fonts.googleapis.com/css?family=Arvo);
h1, h2 {
margin-left: 50px;
font-family: 'Arvo';
}
h1 {
font-size: 50px;
}
h2 {
font-size: 30px;
}
h1, h2 {
color: #D5AD6D; /*if no support for background-clip*/
background: -webkit-linear-gradient(transparent, transparent),
-webkit-linear-gradient(top, rgba(213,173,109,1) 0%, rgba(213,173,109,1) 26%, rgba(226,186,120,1) 35%, rgba(163,126,67,1) 45%, rgba(145,112,59,1) 61%, rgba(213,173,109,1) 100%);
background: -o-linear-gradient(transparent, transparent);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment