[javascript] Appearance of Form Elements

Ben ben at babelfish.co.uk
Fri Mar 16 09:38:28 CST 2001


Use CSS.

Here:

.clsFormField
{
 font-family:Tahoma;
 font-size:8pt;
 color:#000000;
 border:#CCCCCC solid thin;
 padding-top:3px;
 padding-left:3px;
 padding-right:3px;
 padding-bottom:3px;
 height:24px;
}

example:

<input type="text" class="clsFormField" name="txtUsername" id="txtUsername"
size="30" maxlength="50">

hth,

 .b

----- Original Message -----
From: "Alan Easton" <alan.easton at unn.ac.uk>
To: "'Java-List'" <javascript at LaTech.edu>
Sent: Friday, March 16, 2001 3:26 PM
Subject: [javascript] Appearance of Form Elements


> Hi All,
>
> I was wondering if anyone knew of a way to change the appearance of form
> elements. I would like to try and change the normal textarea or input box
in
> a form. You know how they look, embedded into the page, I was wondering if
> there was any method of changing their look on a page.
>
> Hope this is clear, and thanks for any guidance.
>
> Alan Easton...
> mailto:alan.easton at unn.ac.uk
>
>





More information about the Javascript mailing list