Solved

Setting font for the text field

Posted on 2000-03-03
1
227 Views
Last Modified: 2013-12-02
All we have the text fields in the HTML form to get some input form the user.
I want to change the font of the text in the text field. How this can be achived ?
0
Comment
Question by:pganeshan
[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
1 Comment
 
LVL 8

Accepted Solution

by:
stefanx earned 10 total points
ID: 2582784
You can do this through a style sheet directive as follows :

<HTML>
<HEAD>
<STYLE>                                   INPUT { font-size : xx-small;
          font-family : Arial;
          border-style : groove;
          line-height : 1;
          padding-top : 2;
        }
</STYLE>
</HEAD>
<BODY>
<FORM METHOD=POST ACTION="processthis.asp">
<INPUT SIZE=10 NAME="name"><BR>
<INPUT TYPE=SUBMIT VALUE="Click Here">
</FORM>
</BODY>
</HTML>
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Find out what you should include to make the best professional email signature for your organization.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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