How to style <input type=“text”> in IE6 CSS?
Is there any elegant way of applying a certain style to all <input type="text"> elements under IE6? I can do it with some JavaScript, but I was wondering if there was a more elegant way of doing it. Note - I cannot apply a certain class to all textboxes by hand. And I'd like to avoid CSS expressions . AFAIK, IE6 does not support attribute selectors , so I think the answer is no. You'd have to use one of the following: Add a common class attribute to all <input type="text"/> elements. Use JavaScript, as you suggested. Both of which you want to avoid. Too bad. If you happen to be using jQuery,