By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,063 Members | 869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,063 IT Pros & Developers. It's quick & easy.

Button with picture doesn't work why?

P: 1
Hello everyone! I want to make this effect -

but with PNG picture. I created on desktop folder - www. In this folder i have picture (subscribe.png)and html file.
here is my code:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <form action="...">
  6. <p>Subskrybuj nasz biuletyn informacyjny</p>
  7. <input type="text" name="email" >
  8. <input type="image" src="www/subscribe.png" alt="Submit" width="100" height="20">
  9. </form>
  10. </body>
  11. </html>
Link to picture: <removed>
Link to site i created - <removed>

Thank you in advance for your help! :)
1 Week Ago #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,949
The SRC attribute should contain the link to the picture you want displayed, i.e. one of those links I had to remove
1 Week Ago #2

P: 53

Your code was right but in src attribute you should use appropriate path.use absolute path or relative in src attribute.Check location of image.

for Path refer folloeing path:
1 Week Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.