Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    Default How to make drop down menus the same size?

    Hey everyone. So far, I'm doing very well on learning how to use Zen Cart, but there's one thing I can't figure out how to do. This is probably really easy for you guys, but I just can't seem to figure out how to make the drop down menus for my option values the same size. They just seem to be as long as the option values in them. So, my question is how do I set a specific length for my drop down menus, so they are all the same size.

    Thanks,
    Robert

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to make drop down menus the same size.

    The html select tag that is used to display them on the page can take a "size" parameter that specifies how many options are displayed before the dropdown is converted to a scroll box (subject to the limits of each browser).

    You can see an example of how this is done in the manufacturers sidebox where the size is restricted by default to 3 items.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to make drop down menus the same size.

    Thank you for kuroi for answering, but I'm not exactly clear what I have to do. If you can explain what I would have to do, I would really appreciate it.

  4. #4
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to make drop down menus the same size.

    Any help?

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to make drop down menus the same size?

    This is a code change so will require some developer skills though only at a beginner level.

    You need to locate the code that is generating the your option pulldowns. This will most likely be done by a call to the zen_draw_pulldown_field function. The developers toolkit in the Admin > Tools menu will help you to find this.

    Then you need to add the HTML size attribute to the parameters for that call. Taking a look at the code that generates the manufacturers sidebox pulldown will show you how.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Editing the attribute drop down menus
    By menappi in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Jul 2012, 06:04 PM
  2. How to make the medium and large size share the same pic ?
    By OhISeekYou in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Sep 2007, 06:50 PM
  3. How do I make the manufacturer sidebar into a drop down?
    By amieco in forum Basic Configuration
    Replies: 5
    Last Post: 25 Aug 2007, 12:22 PM
  4. How do I change the drop-down menu font SIZE in Admin??
    By ashley100 in forum Basic Configuration
    Replies: 3
    Last Post: 29 Apr 2007, 04:38 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