image on button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myasirm
Forum Commoner
Posts: 54
Joined: Sat Sep 12, 2009 3:57 am

image on button

Post by myasirm »

guys i want to show image on button in html so how can i do this
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: image on button

Post 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)"/>
 
myasirm
Forum Commoner
Posts: 54
Joined: Sat Sep 12, 2009 3:57 am

Re: image on button

Post 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?
nga
Forum Commoner
Posts: 46
Joined: Mon Aug 17, 2009 3:05 am

Re: image on button

Post by nga »

use photoshop. It isnt php question?
myasirm
Forum Commoner
Posts: 54
Joined: Sat Sep 12, 2009 3:57 am

Re: image on button

Post by myasirm »

thx
Post Reply