changing a form controls font size

Hi,
I need all form controls (textboxes, comboboxes etc) on my pages in 14pt.  Currently, I'm creating a class called .bigFont and referencing a class within each controls tag, but i don't want to do it for EVERY single one.  I need to figure out if it's possible to do it globally.
Thanks!
susankangAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DreamMasterConnect With a Mentor Commented:
Works only in IE...Netscape won't allow changes to the form elements in styles.. (maybe NS6+ does, but not NS4+)

<style>
<!--
INPUT, SELECT
{
   font-family: arial;
   font-size: 14px;
}
//-->
</style>

As webwoman stated pt is not very good to use...it looks different varrying on Operating System...

Good luck,
Max.

0
 
webwomanCommented:
I doubt it. Each form element is a different thing. Applying the tag to a DIV and surrounding the form with that might work, but very possibly not, and putting the class on the form tag will probably do nothing.

Also, pt is an iffy measurement -- it's going to be drastically different from Mac to PC, and possibly from computer to computer (depending on the fonts they have). Much better to use px, which is reasonably consistent.

Finally, class on form elements is problematic in NN4+, should work OK in IE 5+ and NN6+, but you never know. Often it seems to depend on the phases of the moon... ;-)
0
 
susankangAuthor Commented:
Thanks to the both of you for giving me a heads up on pts.  I've changed everything to pixels!
0
 
DreamMasterCommented:
Glad we were helpfull susankang... :)

And you're welcome.. :)

Max.
0
All Courses

From novice to tech pro — start learning today.