Solved

Setting font for the text field

Posted on 2000-03-03
1
189 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
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

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

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 …
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…

747 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

8 Experts available now in Live!

Get 1:1 Help Now