Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. horizontal scroll bar to a Select box html

horizontal scroll bar to a Select box html

Scheduled Pinned Locked Moved Web Development
htmlhelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shiby
    wrote on last edited by
    #1

    Hi Friends, I'm facing an issue with the Select box in html. My requirement is, in a Select box when the width of the item is greater than the specified width of the Select box. I want a horizontal scroll bar should appear in Select box. Thanks in Advance Regards, Shiby

    E J S 3 Replies Last reply
    0
    • S Shiby

      Hi Friends, I'm facing an issue with the Select box in html. My requirement is, in a Select box when the width of the item is greater than the specified width of the Select box. I want a horizontal scroll bar should appear in Select box. Thanks in Advance Regards, Shiby

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      Hi there, I guess you might take a look at this Custom Select box Hope this helps << >>

      1 Reply Last reply
      0
      • S Shiby

        Hi Friends, I'm facing an issue with the Select box in html. My requirement is, in a Select box when the width of the item is greater than the specified width of the Select box. I want a horizontal scroll bar should appear in Select box. Thanks in Advance Regards, Shiby

        J Offline
        J Offline
        jcrussell
        wrote on last edited by
        #3

        can you set the scroll property of the selectbox to auto? the following example is for a listbox, but you should get the idea.

        <ASP:LISTBOX id="ListBox1" style="OVERFLOW:scroll;" runat="server" width="120px">
           <ASP:LISTITEM value="Howard the Duck">Howard the Duck</ASP:LISTITEM>
           <ASP:LISTITEM value="The Neverending Story">The Neverending Story</ASP:LISTITEM>
        </ASP:LISTBOX>
        

        creates a listbox with vertical and horizontal scroll bars /jason

        S 1 Reply Last reply
        0
        • J jcrussell

          can you set the scroll property of the selectbox to auto? the following example is for a listbox, but you should get the idea.

          <ASP:LISTBOX id="ListBox1" style="OVERFLOW:scroll;" runat="server" width="120px">
             <ASP:LISTITEM value="Howard the Duck">Howard the Duck</ASP:LISTITEM>
             <ASP:LISTITEM value="The Neverending Story">The Neverending Story</ASP:LISTITEM>
          </ASP:LISTBOX>
          

          creates a listbox with vertical and horizontal scroll bars /jason

          S Offline
          S Offline
          Shiby
          wrote on last edited by
          #4

          Hi Jason, Thanks for your response. I've tried out the scroll property. But still horizontal scroll bar is not appearing in listbox. I've tried out your given code for horizontal scroll bar but could not able to get horizontal scroll bar. :( Not sure, am i missing anything? I'm using IE version 6.0. Looking forward to hear from you. Regards, Shiby

          1 Reply Last reply
          0
          • S Shiby

            Hi Friends, I'm facing an issue with the Select box in html. My requirement is, in a Select box when the width of the item is greater than the specified width of the Select box. I want a horizontal scroll bar should appear in Select box. Thanks in Advance Regards, Shiby

            S Offline
            S Offline
            Sivaranjani Ramachandran
            wrote on last edited by
            #5

            Hi, Did u find a solution for this? If so plz inform me.... I too facing the same problem..... Thanks in advance. Regards, Shiva

            S 1 Reply Last reply
            0
            • S Sivaranjani Ramachandran

              Hi, Did u find a solution for this? If so plz inform me.... I too facing the same problem..... Thanks in advance. Regards, Shiva

              S Offline
              S Offline
              Shiby
              wrote on last edited by
              #6

              Hi Shiva, please go through following article. http://www.codeproject.com/jscript/WithHorizontalScrollbar.asp[^] I hope this will help you out to overcome the select box limitations. Regards, Shiby

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups