logo

New Response

« Return to the main article

You are replying to:

  1. In CSS Level 2 Specification you can. The following would be legal:

    input [type="text"] { color:red; }

    Whilst we wait for any of the browsers to even start to support level 2 we are stuck with having to apply styles individually to elements.

    Best bet is to create a style as below:

    .textInputs{ color:red; }

    and apply this class to the HTML Attrributes of each of the text <input> elements in turn....

    Jake -CodeStore

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: