Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

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!
0
susankang
Asked:
susankang
  • 2
1 Solution
 
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
 
DreamMasterCommented:
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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now