47 users online (0 members and 47 guests)  


  Results 1 to 8 of 8

Related

  1. HTML Combo box referencing XML document    Forum: HTML Forum
    Replies: 0
  2. Displaying long text combo box in IE    Forum: CSS Forum
    Replies: 1
  3. Display Table based on selection in the Combo Box    Forum: Javascript Forum
    Replies: 0
  4. HELP!!!CSS for combo box scrollbar..    Forum: CSS Forum
    Replies: 3
  1. #1
    Ariel's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2002
    Posts
    5

    Unhappy Want scrollbar to appear after 5 items are dispalyed in combo box

    Hello,

    How can you specify the maximum number of items to be displayed in a combo box before a scrollbar appears?. IE has a default of 8 items but Netscape 4.x displays around 20 items before the scrollbar appears. I would like the scrollbar to appear when more than 5 items are displayed. I am using CSS to style my form elements.

    Any ideas??

    Thanks,
    Ariel

  2. #2
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316
    do u mean a drop down menu? (<SELECT>)
    Last edited by Doorknob; 11-18-2002 at 01:54 AM.

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    If it is <select>, then use size -

    Code:
    <select size="5" name="badger">
    <option value="test">tester</option>
    <option value="test">tester</option>
    <option value="test">tester</option>
    <option value="test">tester</option>
    <option value="test">tester</option>
    <option value="test">tester</option>
    </select>
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    Ariel's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2002
    Posts
    5
    Hello...

    To clarify.... when you click on the drop down arrow of the combo box, it would be great if the drop-down list area size could be set to 5 items long. The user can then just use the scrollbar to scroll through the rest of the items on the list.

    Thanks for the help,
    Ariel

  5. #5
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    QuietDean:

    Ariel (and us other lurkers) is looking for something like:


    <select size="1" MAX="5" name="badger">

    where the "MAX" would be the attribute holding the size of the box which pop-ups or down. It'd be nice to even have the up or down direction controllable by something like DIRECTION="up". Have we finally stumped you?

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Maybe this may help http://www.cross-browser.com/examples/menu9.html

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Daves link is the best solution. The only specced attributes are size, multiple and tabindex.

    http://www.w3.org/TR/REC-html40/inte...ml#edef-SELECT

    I guess you guys beat me
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  8. #8
    Ariel's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2002
    Posts
    5
    Dave, thanks for the great link to the combo box example.

    QuietDean, thanks for clarifying my question. I can sure use that HTML link you provided.

    Ariel



Tags for this Thread