html - Show submit button as an image -


i'm trying place form button inside table cell displayed image. set input type image, don't want mouse coordinates passed get.

this i've tried:

html:

<form action='php/like.php' method='get'>     <input type='submit' id='like' title='like' name='id' value='<?php echo $value[id]; ?>' /> </form> 

css:

#like {     background: url('images/star.png') no-repeat;     width: 16px;     height: 16px; } 

this result (tested on firefox , chrome): enter image description here

how can image displayed?

font-size:0; 

into class rid of text overlays submit button.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -