background image for input type="button"

Posted by fusion on Stack Overflow See other posts from Stack Overflow or by fusion
Published on 2010-04-29T16:16:35Z Indexed on 2010/04/29 16:37 UTC
Read the original article Hit count: 409

Filed under:
|
|

i've been trying to change the background image of the input button through css, but it doesn't work.

search.html:

<input type="button" name="button" value="Search" onclick="showUser()" class="button"/>

search.css:

.button {
  background-image: url ('/image/btn.png') no-repeat;
  cursor:pointer;
  }

what could be wrong?

even inline-ing the css didn't seem to work.

© Stack Overflow or respective owner

Related posts about css

Related posts about html