views:

40

answers:

2

Hi guys

Just wondering how you would go about creating the effect as seen in the following image:

Image

The part i'd like to attempt to recreate is the gradient within the text field itself along with the line border surrounding the text box.

Thanks.

+3  A: 

You can just set the CSS attributes on the input element in question. background-image for the gradient and border for the border.

Fletcher Moore
cheers didnt know you could do that for text boxes!
Uncle
@Caylem: if this answer worked for you, 'accept' it...
egrunin
+1  A: 

This can also be done using CSS3, reducing the need to load images. The problem, of course, is that it can become a little tricky cross-browser.

Heres a demo: Demo

Heres a tutorial on reproducing the demo: Tutorial

Brant
nice reply, just what was needed
Uncle