I want to create some decent inputs for my form, and I would really like to know how TWITTER does their glowing border around their inputs.
Example/Picture of the Twitter border:
I also don't quite know how to create the rounded corners.
I want to create some decent inputs for my form, and I would really like to know how TWITTER does their glowing border around their inputs.
Example/Picture of the Twitter border:
I also don't quite know how to create the rounded corners.
Here you go:
Live demo: http://jsfiddle.net/simevidas/CXUpm/1/show/
(to view the code for the demo, remove "show/" from the URL)
I combined two of the previous answers (jsfiddle).
SLaks hit the nail on the head but you might want to look over the changes for inputs in CSS3 in general. Rounded corners and box-shadow are both new features in CSS3 and will let you do exactly what you're looking for. One of my personal favorite links for CSS3/HTML5 is http://diveintohtml5.ep.io/ .
This will create glowing input fields and textareas: