Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove outline from button in firefox

I have a button that holds an image. It looks fine in chrome, and even in IE. But in firefox it leaves an ugly thick border around the button. I have tried border:none; in CSS but nothing seems to change.

Firefox button

My button code is:

<button id="next3"><img src="<?php echo $this->getSkinUrl('images/proddown.jpg') ?>"</button>

I currently have no styles attached. Any ideas how to fix this? Thank you!

like image 420
Chris 'Pig' Hill Avatar asked Mar 21 '26 17:03

Chris 'Pig' Hill


1 Answers

In your case, you need to add background:transparent to the button element. Adding this, along side border:none should solve the problem, if not, see this question.

Example Here

button {
    background:transparent;
    border:none;
    outline:none;
}
like image 60
Josh Crozier Avatar answered Mar 23 '26 05:03

Josh Crozier



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!