Guest Posted May 11, 2003 Posted May 11, 2003 I want to make the Attribute drop down boxes the same size. i.e. 300 px in width. // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_parse_input_field_data($name, array('"' => '"')) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = $GLOBALS[$name]; for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_parse_input_field_data($values[$i]['id'], array('"' => '"')) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_parse_input_field_data($values[$i]['text'], array('"' => '"', ''' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; }[/code If i enter a value of size="whatever" in the $parameters field it will adjust the size. width doesn't work. and i know why. But i can't get the controol of the width of the field. a little help from the OSC guru's please :)
Guest Posted May 13, 2003 Posted May 13, 2003 Bumping this one more time. I hate to be annoying but this is a sticking point for me and i woudl really like some guidance.
Aspen_AGB Posted May 21, 2003 Posted May 21, 2003 yes yes yes yes yes... I need the exact same thing... hate to pull up a dead topic, but someone please help with this :cry:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.