---
title: "Discussion on \"Button with border gradient\" | Hashnode"
description: "Discussion on \"Button with border gradient\". Recently I had to do a button that had a gradient border. There are a couple of ways of doing this.\nSet up\nThe initial HTML is just a button:\n<button>Button</button>\n\nAnd then I've added some CSS to centre the button on the page, and to create a rain..."
url: "https://hashnode.com/posts/button-with-border-gradient/64577da7fd8db471a44d4404"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Button with border gradient](https://blog.nicm42.me.uk/button-with-border-gradient?utm_source=hashnode&utm_medium=feed)

Recently I had to do a button that had a gradient border. There are a couple of ways of doing this. Set up The initial HTML is just a button: <button>Button</button> And then I've added some CSS to centre the button on the page, and to create a rain...

May 7, 2023 · 3 min read · blog.nicm42.me.uk  
Read the article

-   [#css](https://hashnode.com/tag/css)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

  
[View profile](https://hashnode.com/@nicm42)

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
