Unread 08-04-2007, 02:16 AM
paulj paulj is offline
Senior Member
Join Date: Jul 2007
Posts: 521
  #1  
Default CSS Help

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!
Reply With Quote
Unread 08-04-2007, 02:18 AM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141
  #2  
Default

Not tested, but something like this should work. First, give your input tag an id...

Code:
<input name="fullname" id="fullname" value="" />
Then in your css, apply a background image...

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:58 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.