css input fields
Posted: Thu May 17, 2007 6:59 am
Hello,
I am nearly finished with a client site. He wishes for all input fields that are of type "text" to have a border and a background color.
If I simply make a input { border: ...; background-color: #...; } in the style sheet, it will apply this to submit buttons as well.. which I do not want.
Can I apply css only to the text fields from the style sheet, or would I have to make a class in the stylesheet and manually add class="..." to each individual input text field?
-Scott
I am nearly finished with a client site. He wishes for all input fields that are of type "text" to have a border and a background color.
If I simply make a input { border: ...; background-color: #...; } in the style sheet, it will apply this to submit buttons as well.. which I do not want.
Can I apply css only to the text fields from the style sheet, or would I have to make a class in the stylesheet and manually add class="..." to each individual input text field?
-Scott