Solved

changing a form controls font size

Posted on 2002-03-14
4
183 Views
Last Modified: 2013-12-03
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
Comment
Question by:susankang
  • 2
4 Comments
 
LVL 19

Expert Comment

by:webwoman
ID: 6864558
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
 
LVL 19

Accepted Solution

by:
DreamMaster earned 50 total points
ID: 6864814
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
 

Author Comment

by:susankang
ID: 6864880
Thanks to the both of you for giving me a heads up on pts.  I've changed everything to pixels!
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6864896
Glad we were helpfull susankang... :)

And you're welcome.. :)

Max.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now