www.webdeveloper.com
Results 1 to 3 of 3

Thread: what better way to create a dropdown that works with multiline?

  1. #1
    Join Date
    Mar 2013
    Posts
    1

    what better way to create a dropdown that works with multiline?

    hi,

    what better way to create a dropdown that works with multiline in major browsers?


    Same like this:

    -------------
    - Example 1 -
    - and - This is one item
    - Example 2 -
    -------------
    -------------
    - Example 3 -
    - and - This is another item
    - Example 4 -
    -------------
    -------------
    - Example 5 -
    - and - and this is another item
    - Example 6 -
    -------------

    thanks!

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,380
    Can you expand on your request?

    The question and examples given do not compute in my tiny brain.

    Also, what do you mean by "multiline in modern browsers"?

  3. #3
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    you can give each <option> it's own <optgroup>, which provides a small space for labeling text using the label attribute.

    you just need to beef-up the syntax shown here to have more optgroup tags: http://www.w3schools.com/tags/tryit....yhtml_optgroup

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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