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
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

alesand - April 27, 2009 - 21:55

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

rick_deckard - May 1, 2009 - 05:33

You can also just style these with CSS

#edit-sendername, #edit-senderemail, #edit-sendercomment {width:94%;}

 
 

Drupal is a registered trademark of Dries Buytaert.