Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Want scrollbar to appear after 5 items are displayed

    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,
    Reina

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You've tried size:5; in css or size="5" in html?
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #3
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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,
    Reina

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    -27° 28' 22" , 153° 1' 22"
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Reina,

    I had a look and get what you are trying to do. When I tested using IE6.0 the scrollbar appeared when I had more than 11 items in the dropdown box. When viewing in NN6.2 the scrollbars didn't appear until there were 22 items in the dropdown box. As for your question, how to make it appear with 5 or more, if can't see that could be changed.
    "Computers are considered female - As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it."

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Originally posted by zoobie
    You've tried size:5; in css or size="5" in html?
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    -27° 28' 22" , 153° 1' 22"
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts
    zoobie,

    I don't think that is what he is after.

    My understanding is to keep the dropdown as size="1", but when you open the dropdown box a scrollbar will appear once there are 6 or more items.

    Is that your understanding
    "Computers are considered female - As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it."

  • #7
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    JustAsking, yes that's exactly what I'm trying to get at. You may be right about not being able to set when the scrollbar appears....

    Thank you zoobie and JustAsking for your input.

  • #8
    Nix
    Nix is offline
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help too

    Is there really no way to do that?
    cause i need the solution too...

  • #9
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why, may I ask? You should technically just provide the data. The browser decides how it wants to interpret it. For the same reason as for why you shouldn't change the scrollbar colour, I see no reason why you need to limit the height of a combobox.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #10
    New Coder
    Join Date
    Mar 2004
    Location
    Helsingborg, Sweden
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by me'
    Why, may I ask? You should technically just provide the data. The browser decides how it wants to interpret it. For the same reason as for why you shouldn't change the scrollbar colour, I see no reason why you need to limit the height of a combobox.
    Hrmm, doesn't seem quite right to me. The page could require that height of the combobox for the aesthetics to come out as the designer wants. Assuming the size altering doesn't hinder functionality of the page I'm all for screwing the design up to your hearts extent. Can't always stick to the applications basic design, fight the machine..!

  • #11
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, it's 2007 now, 5 years from when the question began. Is there any new information? I found JAVA can set the items in a dropdown box before scroll bar appears but I cannot find any information on html.


  •  

    Posting Permissions

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