1

Hi I am having problem of removing button's border when clicking I use border:none but doesn't work I put border-radius to my button , but when I click there is a border that appears in square how to remove this?

here is my image Thanks in advance..

here is my css

.putadditionalitem{
    width:49%;
    height:100%;
    border-radius:50px;
    font-size:25px;
    font-weight:bold;
    font-family:Poplar Std;
    color:#fff;
    background: #05f11b;
    background-image: -webkit-linear-gradient(top, #05f11b, #0bbb1c);
    background-image: -moz-linear-gradient(top, #05f11b, #0bbb1c);
    background-image: -ms-linear-gradient(top, #05f11b, #0bbb1c);
    background-image: -o-linear-gradient(top, #05f11b, #0bbb1c);
    background-image: linear-gradient(to bottom, #05f11b, #0bbb1c); 
    margin-bottom:5px;
}

enter image description here

Nikunj Chotaliya
  • 802
  • 8
  • 19

1 Answers1

6

It's not the border that does that, it's the outline.

Use

outline:none;

and that will fix it.

Here's an example:

.no-outline {
    outline:none;
}
<input type='text'>
<br><br>
<input type='text' class='no-outline'>

The first input has a blue outline around it on :focus, the second one doesn't.

Albzi
  • 15,431
  • 6
  • 46
  • 63