# Gradient Border Button

> A clean button with a multi-color gradient border, no extra elements needed.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: gradient, border, outline
- Live preview: https://copy-css.com/snippets/gradient-border-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-gradient-border">Learn more</button>
```

## CSS

```css
.btn-gradient-border {
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #f97316, #ec4899, #8b5cf6) border-box;
  color: #111;
  font: 600 16px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-gradient-border:hover {
  transform: translateY(-2px);
}
```

## Notes

- This CSS Gradient Border Button is 16 lines of pure CSS (0.4 KB) with no JavaScript and no dependencies. It uses transitions, transforms and linear gradients.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
