SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2002
    Location
    Philadelphia
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making a "taller" drop-down box?

    We're using a drop-down select box as part of our site navigation system. All was fine until we went from 10 to 12 links in the box. Now a scrollbar has been added, which is a bit of a pain. (People may not see the last two options, and working it is more cumbersome than before.) Does anyone know of some way to force the box to display more choices, and so avoid the scrollbar?

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can define the number of "shown" rows using plain old HTML:
    http://www.w3.org/TR/html401/interact/forms.html#h-17.6
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bruhaha, if you're using a <select> with a size of 1 then I don't believe there's anyway to set the number of options displayed. If it's a real problem you could consider a dhtml navigation list.

  4. #4
    SitePoint Member
    Join Date
    Feb 2002
    Location
    Philadelphia
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, Netscape (4 and 6) and Opera have no problem with displaying the whole list. Only IE (just 90% of our users!) forces a scroll when you exceed eleven lines. I suppose then I'm looking for some way to override the "user agent default" for Explorer, if that's possible here.

    As for DHTML --very likely we'll be moving to that later this year when we do the next major site update.


Bookmarks

Posting Permissions

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