0

If you click on the button, you will see a blue border, which is really annoying for me. Do you have any solutions on how to make it disappear/not appear at all?

button{
    color: aqua;
    background-color: transparent;
    border-radius: 20px;
}
<button>about</button>

2

1 Answer 1

3

That's not a border but the outline of the button. You can remove it adding outline: none to it, but you should consider adding an alternative for those who use the keyboard to navigate.

button{
    color: aqua;
    background-color: transparent;
    border-radius: 20px;
    outline: none;
}
<button>about</button>

Sign up to request clarification or add additional context in comments.

2 Comments

If you care also for Firefox, check stackoverflow.com/questions/71074/…
I think adding the prefix is no longer necessary: developer.mozilla.org/en-US/docs/Web/CSS/outline

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.