SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <OPTGROUP> can I use it?

    The <OPTGROUP> tag. Can I use it? Does it work with version 5+ browsers? I am thinking of using it in pages that make up a content management system - so it will be backend/office use, and browser compatability will not be a big issue. But I am just wondering what the go is with this tag?

    Oh, and what about nesting opgroups - which browsers can I do this in?

    http://www.htmlhelp.com/reference/ht.../optgroup.html

    <edited>
    Err, forget it. I was playing with the code in IE5.1 for Mac where it all works beautifully, but when I tried in in IE5 on Windoze
    Last edited by freakysid; Sep 22, 2002 at 16:22.

  2. #2
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks fine in Moz 1, but as you said IE5 does not recognise it, but is not a big problem when the select statement works as normal...

    Just tried with this code:

    Code:
    <select>
    <optgroup style="font-family:verdana;font-size:1em;color:#c00;background:transparent;font-style:normal;" label="Swedish Cars">
    <option style="font-family:verdana;font-size:0.75em;color:#000;background:transparent;font-style:normal;" value ="volvo">Volvo</option>
    <option style="font-family:verdana;font-size:0.75em;color:#000;background:transparent;font-style:normal;" value ="saab">Saab</option>
    </optgroup>
    <optgroup style="font-family:verdana;font-size:1em;color:#c00;background:transparent;font-style:normal;" label="German Cars">
    <option style="font-family:verdana;font-size:0.75em;color:#000;background:transparent;font-style:normal;" value ="mercedes">Mercedes</option>
    <option style="font-family:verdana;font-size:0.75em;color:#000;background:transparent;font-style:normal;" value ="audi">Audi</option>
    </optgroup>
    </select>


Bookmarks

Posting Permissions

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