Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created May 9, 2017 04:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/67b05088695f5229c921ef1069d5a7ac to your computer and use it in GitHub Desktop.
Save CodeMyUI/67b05088695f5229c921ef1069d5a7ac to your computer and use it in GitHub Desktop.
Weekly Inspiration: Good Gracious, Gradients
<a class="register-button" href="#tickets">Get My Tickets</a>
body {
padding: 100px 0 0;
text-align: center;
background: #f7f7f7;
}
.register-button {
border: 6px solid transparent;
border-image: linear-gradient(to right, #0865F1 0%, #C704F6 100%);
border-image-slice: 1;
background: #fff;
color: #000;
font-size: 2em;
padding: 10px 40px;
text-decoration: none;
font-weight: bold;
text-transform: uppercase;
}
.register-button:hover {
background-color: white;
background: linear-gradient(to right, #0865F1, #C704F6);
color: #fff;
}
@codegrau
Copy link

Hi, @CodeMyUI
this isn't working in safari. Any idea how to solve this?

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