Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   CSS and HTML (http://www.udm4.com/forum/forumdisplay.php?f=8)
-   -   CSS Help (http://www.udm4.com/forum/showthread.php?t=47)

paulj 08-04-2007 02:16 AM

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!

bcarl314 08-04-2007 02:18 AM

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");
}



All times are GMT. The time now is 09:38 AM.

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