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. ASP.NET
  4. Setting dropdown width of Html Select control

Setting dropdown width of Html Select control

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
8 Posts 3 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.
  • R Offline
    R Offline
    rotsey
    wrote on last edited by
    #1

    Hi, Does anyone know how set the dropdown width of a HTML Select control in IE?? I want to have the dropdown width wider than the control. It works ok in FireFox, Bill. Malcolm

    S A 2 Replies Last reply
    0
    • R rotsey

      Hi, Does anyone know how set the dropdown width of a HTML Select control in IE?? I want to have the dropdown width wider than the control. It works ok in FireFox, Bill. Malcolm

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      [Message Deleted]

      R 1 Reply Last reply
      0
      • S Sandeep Akhare

        [Message Deleted]

        R Offline
        R Offline
        rotsey
        wrote on last edited by
        #3

        HOo does that affect the DROPDOWN WIDTH?

        S 2 Replies Last reply
        0
        • R rotsey

          HOo does that affect the DROPDOWN WIDTH?

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Can you post the your html code ?

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

          1 Reply Last reply
          0
          • R rotsey

            HOo does that affect the DROPDOWN WIDTH?

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            <select id="Select1" style="width:120px;"> <option>options 1 </option> <option>options 1 </option> <option>options 1 </option> <option>options 1 </option> </select> Check this one. Give width in pixels its working in my machine. Any issue with this ? if then also you have any issue do one thing for default selected option give space in it <option> Select One </option>

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

            R 1 Reply Last reply
            0
            • S Sandeep Akhare

              <select id="Select1" style="width:120px;"> <option>options 1 </option> <option>options 1 </option> <option>options 1 </option> <option>options 1 </option> </select> Check this one. Give width in pixels its working in my machine. Any issue with this ? if then also you have any issue do one thing for default selected option give space in it <option> Select One </option>

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

              R Offline
              R Offline
              rotsey
              wrote on last edited by
              #6

              You do not understand I want to set the width of the list that drops down seperately from the width of the control So it displays all text

              S 1 Reply Last reply
              0
              • R rotsey

                You do not understand I want to set the width of the list that drops down seperately from the width of the control So it displays all text

                S Offline
                S Offline
                Sandeep Akhare
                wrote on last edited by
                #7

                Still not understing the issue Do you mean that drop down is having some options whose text is more than the width of control ? beacuse of it user can't see the whole text of the list ?

                Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

                1 Reply Last reply
                0
                • R rotsey

                  Hi, Does anyone know how set the dropdown width of a HTML Select control in IE?? I want to have the dropdown width wider than the control. It works ok in FireFox, Bill. Malcolm

                  A Offline
                  A Offline
                  Ahmet GULBAY
                  wrote on last edited by
                  #8

                  Hi friend, I'd asked this question before, you may look for the answer in this message, i've tried it, it's working like you want, http://www.codeproject.com/script/Forums/View.aspx?fid=1640&msg=2617714[^] Message subject is: HTML Select DropDown Width

                  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