Skip to content

Instantly share code, notes, and snippets.

@SantoshCode
Created February 28, 2022 14:28
Show Gist options
  • Save SantoshCode/b9709b345c0f700b5959d368155590d3 to your computer and use it in GitHub Desktop.
Save SantoshCode/b9709b345c0f700b5959d368155590d3 to your computer and use it in GitHub Desktop.
gradient border with border radius
<div class="container">
<a  class="button" href="#"><span>Login</span></a>
</div>
.button {
  background: linear-gradient(to right, #05FBFF,#1E00FF);
  border-radius: 8px;
  color: #122dff;
  display: inline-block;
  font-size: 20px;
  padding: 1px;
  text-decoration: none;
}
.button span {
  background: #fff;
  display: block;
  padding: 1em 3em;
  border-radius: 6px;
}


.container {
  text-align: center;
  margin-top: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment