HTML / CSS How to add image icon to input type="button" ?

Posted by Brett on Stack Overflow See other posts from Stack Overflow or by Brett
Published on 2010-05-27T09:58:02Z Indexed on 2010/05/27 10:01 UTC
Read the original article Hit count: 201

Filed under:
|

Hi,

I'm using this css, but it puts an image in the center. Any way to left or right align an icon using an input type="button" html button, so that the text and the image fit on the button nicely?

background: url('/common/assets/images/icons/16x16/add.png');background-position:center;background-repeat:no-repeat;

© Stack Overflow or respective owner

Related posts about html

Related posts about css