![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
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" |
#6
| |||
| |||
|
|
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: |
#7
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |