?
Solved

Font type

Posted on 1998-08-24
3
Medium Priority
?
178 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

770 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