Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html/css : weird border when clicking the button

Tags:

html

my button has this weird border appearing when clicking on it. how to remove it? below is the html and image example

Buy Now Only While Supplies Last

enter image description here

like image 212
Affiliate World Avatar asked Feb 18 '26 10:02

Affiliate World


2 Answers

Just set your button outline to none:

input[type="button"]{
   outline:none;
}
input[type="button"]::-moz-focus-inner {
   border: 0;
}
like image 118
Amani Ben Azzouz Avatar answered Feb 21 '26 01:02

Amani Ben Azzouz


It's just an outline. You can rid it out by using:

button: {
outline: none;
}
like image 31
Tomasz Jacek Avatar answered Feb 21 '26 03:02

Tomasz Jacek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!