Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button with image in HTML 1

Status
Not open for further replies.

IlseDC

Programmer
Mar 24, 2003
49
BE
I'm new on HTML and CSS.
Is it possible to use a button with an image on it in HTML?
Something like:
<input type=&quot;Button&quot; image=&quot;next.gif&quot; onclick=&quot;DoNext();&quot;/>

Thanks.
 
<input type=&quot;image&quot; src=&quot;file&quot;...

or just do

<img src=&quot;file&quot; onclick=&quot;....>

[Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Or, you can try with CSS:
something like

<input type=&quot;button&quot; style=&quot;background-color: somecolor; height: heightofimage; width: widthofimage; color: somecolor;
font-weight: bold; background-image: url('something.gif')&quot; type=&quot;submit&quot; value=&quot; &quot; name=&quot;submit&quot;>

hope this helps,

RR :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top