Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 623
Vilx- Avatar asked Feb 06 '09 11:02

Vilx-


1 Answers

AFAIK, IE6 does not support attribute selectors, so I think the answer is no. You'd have to use one of the following:

  1. Add a common class attribute to all <input type="text"/> elements.
  2. Use JavaScript, as you suggested.

Both of which you want to avoid. Too bad.

like image 171
David Hanak Avatar answered Oct 02 '22 12:10

David Hanak