HighDots Forums  

Validation with Lists 3 Level's Down

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Validation with Lists 3 Level's Down in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Justin J.
 
Posts: n/a

Default Validation with Lists 3 Level's Down - 09-15-2006 , 08:12 AM






I have a navigation system that I'm working on and just had a question about
lists
that go three levels down. It validates fine until I nest the
"subactiveList" unordered list. I basically need that third level to indent
and have a separate background color. From what I have below, is this still
considered valid markup? It doesn't validate at the W3C.

Here is my markup:

<ul id="navlist">
<li id="active"><a href="#" id="current">Banking</a>
<ul id="subnavlist">
<li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a></li>

<ul id="subactiveList">
<li><a href="#"> Compare Accounts</a> </li>
<li> <a href="#">Ultimate Checking</a> </li>
<li><a href="#"> Regular Checking </a></li>
<li><a href="#"> Money Market Checking </a></li>
<li><a href="#"> Direct Checking </a></li>
<li><a href="#"> Heritage Checking </a></li>
<li><a href="#"> Leisure Line Checking </a></li>
<li><a href="#"> Leisure Line Premium </a></li>
<li> <a href="#">Checking </a></li>
<li><a href="#"> Student Checking </a></li>
<li><a href="#"> Basic Checking </a></li>
<li><a href="#"> Debit Cards </a></li>
<li><a href="#"> Fees </a></li>
</ul>

<li><a href="#">Savings Accounts</a></li>
<li><a href="#">CDs</a></li>
<li><a href="#">Money Market Accounts</a></li>
<li><a href="#">Credit Cards</a></li>
</ul>

</li>
<li><a href="#">Loans </a></li>
<li class="bordernone"><a href="#">Investments</a></li>
</ul>




Reply With Quote
  #2  
Old   
Sonjay
 
Posts: n/a

Default Re: Validation with Lists 3 Level's Down - 09-15-2006 , 08:34 AM






When you nest a list, you're not supposed to close the <li> of the "parent"
list element until after the end of the nested list.

In your code, you close the "Checking Accounts" parent list element, then do
your nested list, then start a new <li> in the parent list. Take the </li>
from the Checking Accounts list element and put it AFTER the </ul> of the
nested "subactive" list.

Note that your second-level list validates because you (quite properly)
didn't close the </li> from the Banking element until AFTER the close of the
nested list contained therein.

--
Sonjay


On 9/15/06 8:12 AM, "Justin J." wrote:

Quote:
I have a navigation system that I'm working on and just had a question about
lists
that go three levels down. It validates fine until I nest the
"subactiveList" unordered list. I basically need that third level to indent
and have a separate background color. From what I have below, is this still
considered valid markup? It doesn't validate at the W3C.

Here is my markup:

ul id="navlist"
li id="active"><a href="#" id="current">Banking</a
ul id="subnavlist"
li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a></li

ul id="subactiveList"
li><a href="#"> Compare Accounts</a> </li
li> <a href="#">Ultimate Checking</a> </li
li><a href="#"> Regular Checking </a></li
li><a href="#"> Money Market Checking </a></li
li><a href="#"> Direct Checking </a></li
li><a href="#"> Heritage Checking </a></li
li><a href="#"> Leisure Line Checking </a></li
li><a href="#"> Leisure Line Premium </a></li
li> <a href="#">Checking </a></li
li><a href="#"> Student Checking </a></li
li><a href="#"> Basic Checking </a></li
li><a href="#"> Debit Cards </a></li
li><a href="#"> Fees </a></li
/ul

li><a href="#">Savings Accounts</a></li
li><a href="#">CDs</a></li
li><a href="#">Money Market Accounts</a></li
li><a href="#">Credit Cards</a></li
/ul

/li
li><a href="#">Loans </a></li
li class="bordernone"><a href="#">Investments</a></li
/ul






Reply With Quote
  #3  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Validation with Lists 3 Level's Down - 09-15-2006 , 08:39 AM



This -

<li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a></li>

<ul id="subactiveList">
...
<li><a href="#"> Fees </a></li>
</ul>


should be this -

<li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a>

<ul id="subactiveList">

...
<li><a href="#"> Fees </a></li>
</ul></li>


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Justin J." <smeagal (AT) test (DOT) com> wrote

Quote:
I have a navigation system that I'm working on and just had a question
about lists
that go three levels down. It validates fine until I nest the
"subactiveList" unordered list. I basically need that third level to
indent
and have a separate background color. From what I have below, is this
still
considered valid markup? It doesn't validate at the W3C.

Here is my markup:

ul id="navlist"
li id="active"><a href="#" id="current">Banking</a
ul id="subnavlist"
li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a></li

ul id="subactiveList"
li><a href="#"> Compare Accounts</a> </li
li> <a href="#">Ultimate Checking</a> </li
li><a href="#"> Regular Checking </a></li
li><a href="#"> Money Market Checking </a></li
li><a href="#"> Direct Checking </a></li
li><a href="#"> Heritage Checking </a></li
li><a href="#"> Leisure Line Checking </a></li
li><a href="#"> Leisure Line Premium </a></li
li> <a href="#">Checking </a></li
li><a href="#"> Student Checking </a></li
li><a href="#"> Basic Checking </a></li
li><a href="#"> Debit Cards </a></li
li><a href="#"> Fees </a></li
/ul

li><a href="#">Savings Accounts</a></li
li><a href="#">CDs</a></li
li><a href="#">Money Market Accounts</a></li
li><a href="#">Credit Cards</a></li
/ul

/li
li><a href="#">Loans </a></li
li class="bordernone"><a href="#">Investments</a></li
/ul






Reply With Quote
  #4  
Old   
Justin J.
 
Posts: n/a

Default Re: Validation with Lists 3 Level's Down - 09-15-2006 , 08:54 AM



Hello Sonjay and Murray,

I think I understand what you both suggested and implemented it, but it
still doesn't validate. Here is what I currently have:

<ul id="navlist">

<li id="active"><a href="#" id="current">Banking</a></li>

<ul id="subnavlist">
<li id="subactive"><a href="#" id="subcurrent">Checking Accounts</a>

<ul id="subactiveList">
<li><a href="#"> Compare Accounts</a> </li>
<li> <a href="#">Ultimate Checking</a> </li>
<li><a href="#"> Regular Checking </a></li>
<li><a href="#"> Money Market Checking </a></li>
<li><a href="#"> Direct Checking </a></li>
<li><a href="#"> Heritage Checking </a></li>
<li><a href="#"> Leisure Line Checking </a></li>
<li><a href="#"> Leisure Line Premium </a></li>
<li> <a href="#">Checking </a></li>
<li><a href="#"> Student Checking </a></li>
<li><a href="#"> Basic Checking </a></li>
<li><a href="#"> Debit Cards </a></li>
<li><a href="#"> Fees </a></li>
</ul>
</li>


<li><a href="#">Savings Accounts</a></li>
<li><a href="#">CDs</a></li>
<li><a href="#">Money Market Accounts</a></li>
<li><a href="#">Credit Cards</a></li>


</ul>


<li><a href="#">Loans </a></li>
<li class="bordernone"><a href="#">Investments</a></li>


</ul>



Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: Validation with Lists 3 Level's Down - 09-15-2006 , 08:59 AM



On Fri, 15 Sep 2006 08:12:04 -0400, "Justin J." <smeagal (AT) test (DOT) com>
wrote:

Quote:
From what I have below, is this still
considered valid markup? It doesn't validate at the W3C.

Here is my markup:

ul id="navlist"
li id="active"><a href="#" id="current">Banking</a
ul id="subnavlist"
li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a></li

ul id="subactiveList"

No, that's not valid markup. The </li> tag just before your
subactiveList <ul> should come after the subactiveList's closing </ul>
tag.

<ul id="navlist">
<li id="active"><a href="#" id="current">Banking</a>
<ul id="subnavlist">
<li id="subactive"><a href="#" id="subcurrent">Checking
Accounts</a>
<ul id="subactiveList">
....
</ul>
</li>

Gary


Reply With Quote
  #6  
Old   
Osgood
 
Posts: n/a

Default Re: Validation with Lists 3 Level's Down - 09-15-2006 , 09:01 AM



Justin J. wrote:

Quote:
Hello Sonjay and Murray,

I think I understand what you both suggested and implemented it, but it
still doesn't validate. Here is what I currently have:

Should be like this:

<ul id="navlist">
<li id="active"><a href="#" id="current">Banking</a>

<ul id="subnavlist">
<li id="subactive"><a href="#" id="subcurrent">Checking Accounts</a>
<ul id="subactiveList">
<li><a href="#"> Compare Accounts</a> </li>
<li> <a href="#">Ultimate Checking</a> </li>
<li><a href="#"> Regular Checking </a></li>
<li><a href="#"> Money Market Checking </a></li>
<li><a href="#"> Direct Checking </a></li>
<li><a href="#"> Heritage Checking </a></li>
<li><a href="#"> Leisure Line Checking </a></li>
<li><a href="#"> Leisure Line Premium </a></li>
<li> <a href="#">Checking </a></li>
<li><a href="#"> Student Checking </a></li>
<li><a href="#"> Basic Checking </a></li>
<li><a href="#"> Debit Cards </a></li>
<li><a href="#"> Fees </a></li>
</ul>
</li>
<li><a href="#">Savings Accounts</a></li>
<li><a href="#">CDs</a></li>
<li><a href="#">Money Market Accounts</a></li>
<li><a href="#">Credit Cards</a></li>
</ul></li>
<li><a href="#">Loans </a></li>
<li class="bordernone"><a href="#">Investments</a></li>
</ul>




Reply With Quote
  #7  
Old   
smeagal
 
Posts: n/a

Default Re: Validation with Lists 3 Level's Down - 09-15-2006 , 09:52 AM



Osgood,

That was it. It did validate. I see where you closed the <li>. Thank you
also Sonjay, Murray, and Gary for your quick input.

Warmest,

Justin J.


"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
Justin J. wrote:

Hello Sonjay and Murray,

I think I understand what you both suggested and implemented it, but it
still doesn't validate. Here is what I currently have:


Should be like this:

ul id="navlist"
li id="active"><a href="#" id="current">Banking</a

ul id="subnavlist"
li id="subactive"><a href="#" id="subcurrent">Checking Accounts</a
ul id="subactiveList"
li><a href="#"> Compare Accounts</a> </li
li> <a href="#">Ultimate Checking</a> </li
li><a href="#"> Regular Checking </a></li
li><a href="#"> Money Market Checking </a></li
li><a href="#"> Direct Checking </a></li
li><a href="#"> Heritage Checking </a></li
li><a href="#"> Leisure Line Checking </a></li
li><a href="#"> Leisure Line Premium </a></li
li> <a href="#">Checking </a></li
li><a href="#"> Student Checking </a></li
li><a href="#"> Basic Checking </a></li
li><a href="#"> Debit Cards </a></li
li><a href="#"> Fees </a></li
/ul
/li
li><a href="#">Savings Accounts</a></li
li><a href="#">CDs</a></li
li><a href="#">Money Market Accounts</a></li
li><a href="#">Credit Cards</a></li
/ul></li
li><a href="#">Loans </a></li
li class="bordernone"><a href="#">Investments</a></li
/ul





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.