Click to See Complete Forum and Search --> : Input Style


Jick
07-18-2003, 11:57 AM
I was wundering if it was possible to have a shadow inside a text box without using a picture? I have seen sites where they have shadows inside their text box. I want to know if this is possible without using images. If it is not possible can someone post the code I need to insert an image as the background of a text box. Thanks. ;)

pyro
07-18-2003, 12:05 PM
What do you mean by "shadow"? Perhaps you could post a link to the site you saw it on...

Jick
07-18-2003, 12:22 PM
Here is an example I made up real quick:

pyro
07-18-2003, 12:31 PM
Yeah, looks like you are going to have to use an image:

<input type="text" style="background: url(directory/image.gif);">

Jick
07-18-2003, 02:09 PM
Ok, I'll probably use that then! I have one more question before I use that though. I know you can use and image instead of a submit button for forms, but can you use a image instead of a text box in a form? I would think it would be possible, but I'm not sure. :(

pyro
07-18-2003, 02:13 PM
Huh??? I'm not sure I know what you are asking. An image instead of a textbox? I don't think so...

Jick
07-18-2003, 02:25 PM
This code below will allow you to have a custom submit button:

<input type="image" name="submit" src="/images/submitbutton.jpg">

Can I do something like this for a text box?

pyro
07-18-2003, 02:30 PM
No...