lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Nested lists


From: Walter Ian Kaye
Subject: Re: [Lynx-dev] Nested lists
Date: Sun, 24 Sep 2006 20:59:24 -0700

At 08:36a +0100 09/24/2006, David Woolley didst inscribe upon an electronic papyrus:

You are not currently using logical HTML elements.  This is an abuse
of the DL element.  Site maps are, logically, nested, normally
unumbered, lists (i.e.) UL.  You should use these and style out the
marker and accept that some browsers don't support or don't adequately
support style sheets.

OK, so I'm stuck with bullets in Lynx, no way to hide 'em. :/

This seems to look "right" :-) in Safari:

<HTML>
<HEAD>
<TITLE>Site Map tests</TITLE>
<STYLE>
   <!--
   UL.menu0 { margin-left: 0em;  padding-left: 0em }
   UL.menu1 { margin-left: 0em;  padding-left: 2em }
   LI.menu0 { margin-left: 0em;  padding-left: 0em; list-style: none }
   LI.menu1 { margin-left: -2em; padding-left: 2em; list-style: none }
   -->
</STYLE>
</HEAD>
<BODY>

<H3>Text (UL nesting + stylesheet)</H3>

<UL CLASS=menu0>
    <LI CLASS=menu0>Menu Level 1:<UL CLASS=menu1> <!--home page-->
        <LI CLASS=menu1>submenu level 1a</LI>
        <LI CLASS=menu1>submenu level 1b</LI>
        <LI CLASS=menu1>Menu Level 2:<UL CLASS=menu1>
            <LI CLASS=menu1>submenu level 2a</LI>
            <LI CLASS=menu1>submenu level 2b</LI>
            <LI CLASS=menu1>Menu Level 3:<UL CLASS=menu1>
                <LI CLASS=menu1>submenu level 3a</LI>
            </UL></LI>
        </UL></LI>
    </UL></LI>
</UL>

</BODY>
</HTML>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]