De Facto Standard for Input[type=text] Class
Posted: Fri Oct 02, 2009 2:33 pm
As you may already know, IE6 (and I believe IE7, not sure about IE8 though) does NOT support CSS attribute selectors. That is, these:
So, the only way to select a input element with the type of text (input boxes, which is what I call them) I would need to add a class to them and write:
But when I think about it, the class text doesn't seem to be very suitable, and almost sounds like a more textual element.
So! My question is this:
What's the de facto standard for a css class for this specific purpose? What classes should I give to each input element? Should I just go with .text for all input[type=text]'s and .button for all input[type=button]'s, and etc?
Any suggestions are appreciated. Thanks for reading.
Code: Select all
input[type=text] { /*...*/ }Code: Select all
input.text { /*..*/ }So! My question is this:
What's the de facto standard for a css class for this specific purpose? What classes should I give to each input element? Should I just go with .text for all input[type=text]'s and .button for all input[type=button]'s, and etc?
Any suggestions are appreciated. Thanks for reading.