I have two sets of input type=text elements that are styled differently in CSS. For the first set, the length is determined by CSS width. For the second set, the size value is used to determine the length of the input box:
<input type=text name=name value='Jason Bourne'> /*1st set*/
<input type=text name=cardNumber value='4111111111111111' size=19> /*2nd set*/
Without introducing a class or id attribute, is it possible to style the two sets separately using just CSS selectors?
Clarification: size 19 above is just an example. I want to be able to select based on whether the size attribute is set or not, combine with the attribute that type is text.
It is possible – http://jsfiddle.net/geQqG/2/