Input Fields are very wide
CWitt - April 5, 2009 - 17:49
| Project: | Author Contact |
| Version: | 5.x-1.2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
The input fields for Name and Email are much wider than the dynamic Comment section. How can I adjust the length of the Name and Email Fields?
Thanks in advance!

#1
I don't know about 5.x-1.2, but in 6.x-1.1 after doing some changes to authorcontact.module the input fields look better:
$form['sendername'] = array(
'#title' => t('Your name'),
'#type' => 'textfield',
'#size' => 16, //change #1
'#required' => true
);
$form['senderemail'] = array(
'#title' => t('Email'),
'#type' => 'textfield',
'#size' => 16, //change #2
'#required' => true
#2
You can also just style these with CSS
#edit-sendername, #edit-senderemail, #edit-sendercomment {width:94%;}