Solved

Font type

Posted on 1998-08-24
3
172 Views
Last Modified: 2013-12-02
I have the following html code:

  <FORM METHOD="POST" ACTION="file.htm">
    <TABLE CELLPADDING="10" BORDER=0 ALIGN="CENTER">
      <TR>
        <TD BGCOLOR="#0080C0" ALIGN="LEFT">
          <B>
            <FONT FACE="ARIAL" SIZE=2 COLOR="#FFFFFFF">
              Field1 <BR><SELECT NAME="cboCombo" > 
              <OPTION> Option1 </OPTION>
              <OPTION> Option2 </OPTION>
              <OPTION> Option3 </OPTION>
              </SELECT>
              <BR>
              <BR>
              Field2 <BR><INPUT NAME="txtText1" SIZE="22">
              <BR>
              <BR>
              Field3 <BR><INPUT NAME="txtText2" SIZE="22">
              <BR>
              <BR>
              Field4 <BR><TEXTAREA NAME="txtText4" ROWS="5" COLS="19"></TEXTAREA>
              <BR>
            </FONT>
          </B>
        </TD>
      </TR>
      <TR>
        <TD BGCOLOR="#0080C0" ALIGN="CENTER">
          <INPUT TYPE=SUBMIT VALUE= "Ok">
        </TD>
      </TR>
    </TABLE>
  </FORM>

Inside all the fields, the font type is Arial. The problem is that inside the Textarea, the font type changes, I think to Sans.
0
Comment
Question by:carflores
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:carflores
ID: 1836944
I forgot to tell that I´m using IE4 to browse the page..
0
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
ID: 1836945
OK, you can use CSS to control the font of form elements.  Here is an example:
<INPUT NAME="field" STYLE="font-family: courier; font-size: 14pt;" TYPE="TEXT" SIZE=50>
This will work for a text area as well.  Of course it only works on 4.0+ browsers (IE 4 will work).  Just add the style="" part to your page.  The font-size is just there because I make it slightly bigger on my page.  If you don't want that (I wouldn't think you would) just remove it.

-Josh
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1836946
Oh, upon reading this question again, I think that maybe you are asking how you can fix that from the user end?  SO that all textarea's will be that font by default unless someone uses CSS to specify it like I mentioned.
Is that what you meant?
-Josh
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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
Technology Resume 7 71
Html fieldset fix its height and width 4 44
Compute age Html 2 27
Making Table Thru ASP Response.write 5 21
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

730 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