Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / modify form field sizes

modify form field sizes

Views: 654

Results 1 to 4 of 4
18 Sep 2012, 5:47 PM
#1
petergy avatar

petergy

New Zenner

Join Date:
Sep 2012
Posts:
65
Plugin Contributions:
0

modify form field sizes

I would like to find out how to change the size of the form windows? I need to make the "Company name and Address" fields smaller. I see it in firebug that it is set to "41"
,but I can not find which page to edit it on?

Can anyone give some ides, please?

18 Sep 2012, 6:08 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: modify form field sizes

includes/templates/YOUR_CUSTOM_TEMPLATE_NAME/templates/tpl_modules_create_account.php around line 39 for Company.

22 Sep 2012, 2:56 AM
#3
petergy avatar

petergy

New Zenner

Join Date:
Sep 2012
Posts:
65
Plugin Contributions:
0

Re: modify form field sizes

Thank you. The only one I could not find is the "country". Any idea?

22 Sep 2012, 2:47 PM
#4
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: modify form field sizes

Create a special stylesheet for the page and include things like the following:

eg includes/templates/YOUR_TEMPLATE/css/mypage.css

input#org_name {width:22em; margin:0.15em 0em;}
input#org_reg {width:11em; margin:0.15em 0em;}
input#org_address {width:22em; margin:0.15em 0em;}
input#org_address2 {width:22em; margin:0.15em 0em;}
input#org_city {width:22em; margin:0.15em 0em;}
input#org_state {width:22em; margin:0.15em 0em;}
input#org_postcode {width:11em; margin:0.15em 0em;}
input#org_country {width:22em; margin:0.15em 0em;}