Fixed width <select>

Discussion in 'HTML and CSS' started by jayman, Jul 25, 2008.

  1. jayman

    jayman

    Joined:
    Jul 25, 2008
    Messages:
    2
    I am trying to create a fixed-width drop-down field item (<select> tag). In case, the string length of option values exceeds the width of <select>, it should display the option list by expanding option area while clicking on drop-down.

    The following code works fine in Mozila-firefox (v2.0) but does not work in IE v7.0 (It's clipping the string after specified width)

    <select style="width:145px;" name="abcd" id="abcd">
    <option value="" selected="true">Select one</option>
    <option id="one" value="one">Dummy Data - Dummy Data - Dummy Data 1</option>
    <option id="two" value="two">Dummy Data - Dummy Data - Dummy Data 2</option>
    </select>


    Any help would be appreciated.
     
    jayman, Jul 25, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. msswasstastic@aol.com

    Fixed layout width based on browser window width

    msswasstastic@aol.com, Jan 27, 2005, in forum: HTML
    Replies:
    11
    Views:
    1,128
    Toby Inkster
    Jan 28, 2005
  2. johnp
    Replies:
    4
    Views:
    3,722
    Toby Inkster
    May 23, 2005
  3. ssk
    Replies:
    5
    Views:
    5,691
    Jukka K. Korpela
    Oct 30, 2006
  4. cera
    Replies:
    1
    Views:
    1,357
    Neredbojias
    Aug 18, 2007
  5. satya.komatineni@gmail.com
    Replies:
    1
    Views:
    757
    Beauregard T. Shagnasty
    Dec 29, 2007
Loading...

Share This Page