W3C home > Mailing lists > Public > www-html@w3.org > October 2003

Re: Lists and the hr or seperator elements

From: Lachlan Hunt <lhunt07@postoffice.csu.edu.au>
Date: Thu, 30 Oct 2003 18:42:49 +1100
Message-ID: <3FA0C0F9.6060002@postoffice.csu.edu.au>
To: www-html@w3.org

 >> assignments from exams, however, the use of a full nested list was
 >> inappropriate, since nested lists would produce a sub-menu style,

 > Only with an inappropriate style sheet.

Would this be possible even if some times a sub menu was required and 
othertime, just a grouped set?

for example:
<nl>
    <label>NavMenu</label>
    <ligroup>
        <label>Group 1</label>
        <li>NavMenu item1</li>
        <nl>
            <label>SubMenu</label>
            <li>SubMenu Item1</li>
        </nl>
    </ligroup>
    <ligroup>
        <li>NavMenu item2</li>
        <li>NavMenu item3</li>
    </ligroup>
</nl>

so this should render like:
NavMenu
  ___Group 1___
  NavMenu Item1
  SubMenu     > SubMenu Item1
  ___Group 2___ SubMenu Item2
  NavMenu Item2
  NavMenu Item3

could this be done properly using CSS and Class selectors like this?
<nl>
    <label>NavMenu</label>
    <nl class="ligroup">
        <label>Group 1</label>
        <li>NavMenu item1</li>
        <nl class="submenu">
            <label>SubMenu</label>
            <li>SubMenu Item1</li>
        </nl>
    </nl>
    <nl class="ligroup">
        <label>Group 2</label>
        <li>NavMenu item2</li>
        <li>NavMenu item3</li>
    </nl>
</nl>
If so, great!

CYA
...Lachy
Received on Thursday, 30 October 2003 02:43:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:58 GMT