PDA

View Full Version : input text box width without class



ksanjanadevi
Jul 7th, 2009, 12:32 PM
hi how do I give width for <input type="text"> without defining class?? This should work in all browsers.. Iwant to do this because If I have to give class name I need to change this for 100 forms rather than giving class names I thought of giving css directly for input text boxes only.. any solutions that work for crross browers also???

abduraooft
Jul 7th, 2009, 12:34 PM
any solutions that work for crross browers also???
There's the catch! You could use
input[type="text"]{
} for standard browsers, thus of course no way in IE by CSS only.

With that said, you may use some javascript technique like http://cf-bill.blogspot.com/2005/05/styling-all-input-typetext-webpage.html