Solved

Font type

Posted on 1998-08-24
3
165 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
  • 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

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

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

895 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

17 Experts available now in Live!

Get 1:1 Help Now