-2

How to remove focus of the button when button onclick event occur using css.I have used css outline:0 none but it not work.I have also used border:none but it also not working.What can i do please suggest me.

.btnfst {
    border-radius: 100px;
    height: 60px;
    width: 220px;
    background-color:   #1E90FF;
    font-size: 30px;
    color: white;

    border-style:hidden;
    overflow: hidden;
    border-image-repeat: stretch;
    background-image: url('images/btt.png');

     border: none;
     outline: 0 none;
    -moz-outline-style: none;    
}

1 Answers1

0

You are removing the outline on the button it self, not on the focus moment.

Try:

.btnfst:focus {
  outline: none;
}

With this you are removing the focus when the focus is active.

https://jsfiddle.net/851egdsm/

d1m5n
  • 411
  • 3
  • 9