Page 1 of 1

image on button

Posted: Thu Dec 10, 2009 12:53 am
by myasirm
guys i want to show image on button in html so how can i do this

Re: image on button

Posted: Thu Dec 10, 2009 12:57 am
by pbs
You can use style tag or create css for button

Style tag like this

Code: Select all

 
<input type="submit" name="btnSubmit" id="button" value="Submit" style="background-image:url(image path)"/>
 

Re: image on button

Posted: Thu Dec 10, 2009 1:02 am
by myasirm
thankx dear but my image size so large it only display the corner of image on button so how can i display complete image on button i dont want to increase size of button how can i decrease size of image?

Re: image on button

Posted: Thu Dec 10, 2009 1:07 am
by nga
use photoshop. It isnt php question?

Re: image on button

Posted: Thu Dec 10, 2009 1:07 am
by myasirm
thx