Solved

Font type

Posted on 1998-08-24
3
164 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
Comment Utility
I forgot to tell that I´m using IE4 to browse the page..
0
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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.
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now