How to remove borders from buttons with CSS?

Spread the love

Sometimes, we want to remove borders from buttons with CSS.

In this article, we’ll look at how to remove borders from buttons with CSS.

How to remove borders from buttons with CSS?

To remove borders from buttons with CSS, we set the border attribute.

For instance, we write

button {
  padding: 0;
  border: none;
  background: none;
}

to add border: none; to remove the border.

Conclusion

To remove borders from buttons with CSS, we set the border attribute.

Leave a Reply

Your email address will not be published. Required fields are marked *