Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Seminioni/7b051c2e80a0e8ed6dd266b289fc7cd8 to your computer and use it in GitHub Desktop.
Save Seminioni/7b051c2e80a0e8ed6dd266b289fc7cd8 to your computer and use it in GitHub Desktop.
CSS rounded corners with gradient border
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: content-box, border-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment