Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Size

Status
Not open for further replies.

MrPantsTm

Programmer
Jan 22, 2004
71
US
Is there any way to change the size of forms and how they are displayed? When people viewing the site change the size of the font on there systems the form sizes stay the same. Is there anyway to control this?
 
Yup... define font size in percents:

input{ font-size: 100%; }
select{ font-size: 100%; }
... etc.
 
could you explain that a little further since it's not working for me. thanks!
 
OK, First tell us what do you exactly want with forms - change look of form elements (textbox, button, blah), increase size of elements when user changes text size (I thought that was the question) or something else.
 
define the sizes in ems if you want it to work in all current browsers.

{
font-size:1em;
}

you can use 2 decimal places as well e.g. 0.85em, amd 1em is about 12pt at the default setting in most browsers



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top