Solved

changing a form controls font size

Posted on 2002-03-14
4
185 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get container centered 4 25
Multiflying 2 Input Text On a Table 7 31
Question about traversing a tree using jQuery 7 34
Copying table data to one another 15 31
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.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

808 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