Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating custom html text boxes

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.

like image 653
Julio Avatar asked Sep 26 '26 23:09

Julio


2 Answers

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

like image 118
Brant Avatar answered Sep 28 '26 20:09

Brant


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

like image 38
Fletcher Moore Avatar answered Sep 28 '26 20:09

Fletcher Moore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!