Solved

changing a form controls font size

Posted on 2002-03-14
4
182 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Glad we were helpfull susankang... :)

And you're welcome.. :)

Max.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 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

13 Experts available now in Live!

Get 1:1 Help Now