PDA

View Full Version : CSS Help


paulj
08-04-2007, 02:16 AM
Hello there, I am not new to CSS, although I have a question: How do I make my CSS have a background image for a user inputted area? An example would be if I have a contact us form and there is a name input and i want to make the background of the name input to /images/blah.gif Thanks!

bcarl314
08-04-2007, 02:18 AM
Not tested, but something like this should work. First, give your input tag an id...


<input name="fullname" id="fullname" value="" />


Then in your css, apply a background image...


#fullname {
background-image:url("/path/to/image.jpg");
}