Results 1 to 2 of 2

Thread: Adding scrollbar to CSS Dropdown Menu

  1. #1
    Join Date
    Oct 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding scrollbar to CSS Dropdown Menu

    I want to use the chrome drop down menu script, but would like to add a scrollbar to the side of each menu so that lets say there are 100 entries into the menu, that it would only display say 15 of them, but have a scrollbar so that you can scroll down and see/click the rest of the menu items. Any help out there??

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    You could use CSS's overflow property in combination with the height property on the drop down menu to add a scrollbar. Inside chrome.css for example, make the following change:

    Code:
    .dropmenudiv{
    "
    "
    height: 300px;
    max-height: 300px;
    overflow-y: scroll;
    }
    Note that overflow-y is not supported in earlier versions of Firefox, so you may want to resort to using overflow instead.

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
  •