Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default zen_draw_pull_down_menu width

    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.

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: zen_draw_pull_down_menu width

    Quote Originally Posted by adamlonsdale View Post
    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(); 

 

 

Similar Threads

  1. v150 Question with zen_draw_pull_down_menu
    By jrcook416 in forum General Questions
    Replies: 11
    Last Post: 4 Dec 2012, 02:33 PM
  2. zen_draw_pull_down_menu, remember selected value
    By quick1 in forum General Questions
    Replies: 9
    Last Post: 16 May 2011, 02:10 AM
  3. Replies: 2
    Last Post: 13 Jan 2010, 01:37 PM
  4. help with zen_draw_pull_down_menu function
    By keithstric in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Aug 2009, 09:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg