Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.