HighDots Forums  

formatting form fields

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss formatting form fields in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ashkaan57@hotmail.com
 
Posts: n/a

Default formatting form fields - 11-29-2005 , 05:35 PM






Hi,
I am trying to set some style, simeple ones, for some form fields and I
don;t seem to get it working.

in css file:

..FormField {
font-size:x-small; font-family: Verdana, Arial, Helvetica,
sans-serif;
}

in the form:

<td><input class="FormField" maxlength="75" value="" name="phone"></td>

I tried:
<td class "FormField"><input maxlength="75" value="" name="phone"></td>

TIA.


Reply With Quote
  #2  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: formatting form fields - 11-29-2005 , 06:00 PM






ashkaan57 (AT) hotmail (DOT) com wrote:

Quote:
Hi,
I am trying to set some style, simeple ones, for some form fields and
I don;t seem to get it working.

in css file:

.FormField {
font-size:x-small; font-family: Verdana, Arial, Helvetica,
sans-serif;
}
Drop that, and use the following:

input { font-size: 100%; font-family: Arial, Helvetica, sans-serif; }

But use the font-family only if you want it different than the family
assigned to the <body> element.

x-small is way smaller than I can read. Set it to 100%, and dump the
Verdana from your site.
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

If it looks too large in *your* browser, set your own defaults to
something smaller; don't penalize your visitors.

Quote:
in the form:

td><input class="FormField" maxlength="75" value="" name="phone"></td
<td><input maxlength="75" value="" name="phone"></td>

No other code is necessary.

--
-bts
-Warning: I brake for lawn deer


Reply With Quote
  #3  
Old   
ashkaan57@hotmail.com
 
Posts: n/a

Default Re: formatting form fields - 11-29-2005 , 07:08 PM



Thank you for the reply.
Can I do the same for dropdowns, listboxes, ...?
Do I have to set:

select {font-size:100%; ...}

Thanks.

Beauregard T. Shagnasty wrote:
Quote:
ashkaan57 (AT) hotmail (DOT) com wrote:

Hi,
I am trying to set some style, simeple ones, for some form fields and
I don;t seem to get it working.

in css file:

.FormField {
font-size:x-small; font-family: Verdana, Arial, Helvetica,
sans-serif;
}

Drop that, and use the following:

input { font-size: 100%; font-family: Arial, Helvetica, sans-serif; }

But use the font-family only if you want it different than the family
assigned to the <body> element.

x-small is way smaller than I can read. Set it to 100%, and dump the
Verdana from your site.
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

If it looks too large in *your* browser, set your own defaults to
something smaller; don't penalize your visitors.

in the form:

td><input class="FormField" maxlength="75" value="" name="phone"></td

td><input maxlength="75" value="" name="phone"></td

No other code is necessary.

--
-bts
-Warning: I brake for lawn deer


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.