Remove border from buttons

JamesonW picture JamesonW · Jul 16, 2012 · Viewed 318.1k times · Source

I tried to create buttons and insert my own images instead of the standard button images. However, the gray border from the standard buttons still remains, showing on the outside of my black button images.

Does anyone know how to remove this gray border from the button, so it's just the image itself? Thank you.

Answer

Vestride picture Vestride · Jul 16, 2012

Add

padding: 0;
border: none;
background: none;

to your buttons.

Demo:

https://jsfiddle.net/Vestride/dkr9b/