www.webdeveloper.com
Results 1 to 6 of 6

Thread: Weird <select> problem

  1. #1
    Join Date
    Jan 2005
    Posts
    5

    Question Weird <select> problem

    I have a multiple-selection box that won't widen enough to accommodate the entries. If I change it to a drop-down box, it'll widen when clicked on, but otherwise it's too narrow. Does anyone know what to do about this?

  2. #2
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132

    Re: Weird <select> problem

    What do you mean by 'multiple-selection box'.
    Generally it's a drop-down box with 'size=XX multiple' added

    Show a snippet of your HTML code.

  3. #3
    Join Date
    Jan 2005
    Posts
    5
    Yes, that's what I meant, a <select> tag with the "multiple" attribute set.

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,925
    PHP Code:
    <select name="select" style="width: 15em;" multiple
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  5. #5
    Join Date
    Jan 2005
    Posts
    5
    Hey, that actually worked! Thanks, NogDog.

  6. #6
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,925
    Originally posted by swadams
    Hey, that actually worked! Thanks, NogDog.
    You're welcome.

    There are all sorts of handy things you can do with CSS styling (and I'm still learning them).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles