1 reply [Last post]
Martagnan
Offline
Regular
uk
Last seen: 13 years 45 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: 3 days 13 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

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