I have a div with a span element in it, which will have a redirection function for it. The div has a border-radius property. All the working and UI is all looking fine. But when the element is selected am seeing a border box around the div.
Since it appears only for a minute time before redirection, I was unable to track what could be the CSS issue with it.
Here is my code:
HTML: Button Text
CSS:
.menu-button{
background-color: green;
border-radius: 30px;
cursor: pointer;
margin: 10px 5px 2%;
text-transform: uppercase;
}
this is how the div on select looking like, before it moves to different page:
Any help on this will be greatly appreciated.

Make sure you set the
outlineof the menu-button class tonone. Namely,outline: none;.This is happening due to some default values of the
buttonelement. On Google Chrome, for example, theoutlineis a standard blue border to highlight where you are currently at.Hence, by setting
outline: none;will remove anyborderwhen you click on abuttonelement.This applies to
inputelements as well, for future reference.