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.
You better use Twitter Bootstrap which contains all of this nice stuff inside. Particularly here is exactly what you want.
In addition, you can use different themes built for Twitter Bootstrap from this website
Below is the code that Bootstrap uses. Colors are bit different but the concept is same. This is if you are using LESS to compile CSS:
If you are not using LESS then here's the compiled version:
How about something like this... http://jsfiddle.net/UnsungHero97/Qwpq4/1207/
CSS
Use a normal blue
border
, a mediumborder-radius
, and a bluebox-shadow
with position0 0
.Modified version with little less glowing version.