Currently I have a select box in a form as follows :
$form['fieldset']['event_trigger'] = array('#type' => 'select', '#title' => t('E-mail event trigger'), //'#default_value' => $edit['mail'], '#size' =>20 //'#options' => select_eventtrigger_dropdown(), '#description' => t('A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.'), '#required' => TRUE, );
#size attribute is not fitting my requirement. It should have been the width of the select box. How can I achieve this or is there any workaround?