View Full Version : how to change the style of text in a form
yanmin
08-03-2004, 08:09 AM
i am writing these codes
<select name="question">
<option>Generals</option>
<option>support</option>
<option>tech</option>
</select>
how to change the font of "generals"and"support"?
ronaldb66
08-03-2004, 10:46 AM
As far as I know - opinions differ at this point - form elements are OS generated and therefore controlled by OS settings; they are not controllable through style rules.
Just apply a style rule and see what happens. It's a mixed bag, with Mozilla in the lead, and Opera last. You should refrain from too extensively styling form controls anyway, for usability reasons.
kiransoanje
08-05-2004, 11:38 AM
Hello,
U can add this class in CSS and use according to you requirement
.com
{
font-size: 20pt;
font-family:Verdana;
font-weight: bold;
background-color: #ffffcc;
color: red;
text-decoration:underline;
}
thax
rswyatt
08-05-2004, 12:26 PM
I've made several forms with styles attached <input type='text' name='blah' style='somestyle'> and it works fine for most... However, not all form elements seem to support it.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.