1 reply [Last post]
Martagnan
Offline
Regular
uk
Last seen: 12 years 42 weeks ago
uk
Joined: 2003-08-27
Posts: 21
Points: 0

when I style the <input> tag I end up with both the field and the submit button being styled. I want field styled differently. any ideas?

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 18 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Form Fields and buttons

Hi Martagnan,
The safest way to do this is to give the fields a class <input class="fld" type="text" name="test" />
input.fld{background-color:#CCCCCC;}
Hope that helps