View Full Version : Input field background picture?

12-08-2007, 09:49 PM
Is it possible to apply a background picture to an input field? If so, could you post example code on how to work that?

rnd me
12-08-2007, 10:33 PM
<input style="background-image:logo.gif" value="text here" size="29" type="text" />

Philip M
12-09-2007, 09:15 AM
Something like this:-

<style type="text/css">
INPUT { background-color: teal}
TEXTAREA { background-image: url(image.gif)}
.special { background-color: red; }


<form name ="myform">
Your Name:
<INPUT type="text">
Your Message
<TEXTAREA cols="20" rows="10"></TEXTAREA>
<INPUT class="special" type="submit">