
Originally Posted by
adamlonsdale
Hey there,
I currently have some code:
PHP Code:
$content .= zen_draw_pull_down_menu('available', $available, (isset($_GET['available']) ? $_GET['available'] : 'yes'), '') . zen_hide_session_id();
This creates a select menu, to the length of the longest item in it. I have foun that through firebug, if I changed the CSS for the select item in stylesheet_tm.css, it creates it to the length I like it. However that also changes every othe drop down menu on the site.
I was wondering how i go about (in that code) changing the width to be 161px. I have heard of the $parameters='' option, and wondered how that works?
Any help would be great.
Adam.
change this code:
PHP Code:
$content .= zen_draw_pull_down_menu('available', $available, (isset($_GET['available']) ? $_GET['available'] : 'yes'), '') . zen_hide_session_id();
To This:
PHP Code:
$content .= zen_draw_pull_down_menu('available', $available, (isset($_GET['available']) ? $_GET['available'] : 'yes'), '" style="width: 161px; margin: auto;"') . zen_hide_session_id();