39 users online (0 members and 39 guests)  


  Results 1 to 2 of 2

Related

  1. Easy drop down menu?    Forum: HTML Forum
    Replies: 8
  2. Replies: 2
  3. create a drop down menu box in cgi    Forum: CGI Perl Forum
    Replies: 2
  4. Jump Menu covers drop down menu    Forum: HTML Forum
    Replies: 1
  5. Drop down menu    Forum: HTML Forum
    Replies: 6
  1. #1
    Richardf's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Posts
    7

    HTML drop down menu

    Hi there,

    Hope all is well.

    I've create the following drop down menu. It works fine, except some of the items are quite long and are not displaying in full, when the menu is dropped down. The problem is that, the bit that is initially displayed before you drop down the menu can not be enlargened, because it is a finite area. What I am effectively looking to do is to ensure that the item is fully displayed. I'd like to avoid using javascript where possible.

    Thanks

    <form name="formone" >
    <p>
    <select id="jump-button">
    <option selected="selected">Item 1</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    <option value="link">Item ABCDEF GHIJKLM</option>
    </select>

  2. #2
    Bigmous's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Dec 2008
    Location
    Sydney, Australia
    Posts
    27

    Re: HTML drop down menu

    if its only 1 drop down menu

    you can add the following to the css file

    select {width: 200px;
    }

    otherwise give each drop down a class and control the width for each 1.



Tags for this Thread