The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 8 of 8

Thread: Nested Lists that validate?

  1. #1
    200
    posts
    Every1 in Scotland duz it

    Nested Lists that validate?

    Nested Lists that calidate? is it possible?

    ty

  2. #2
    please explain a little further...

  3. #3
    200
    posts
    Every1 in Scotland duz it
    This a simple nested list:

    <ul>
    <li><a href="#" >Item one</a>
    <ul>
    <li><a href="#">Subitem one</a></li>
    <li><a href="#">Subitem two</a></li>
    <li><a href="#">Subitem three</a></li>
    <li><a href="#">Subitem four</a></li>
    </ul>

    </li>
    <li><a href="#">Item two</a></li>
    <li><a href="#">Item three</a></li>
    <li><a href="#">Item four</a></li>
    </ul>


    and each section can be styled using css. But it doesnt validate. Is there a way to have nested lists that validate?

  4. #4
    ** edit... looks like its in order..
    Last edited by mpelland; February 3rd, 2006 at 03:00 PM.

  5. #5
    PHP Code:
     <ul>
      <
    li>Item one
       
    <ul>
        <
    li>Subitem one</li>
        <
    li>Subitem two</li>
        <
    li>Subitem three</li>
        <
    li>Subitem four</li>
       </
    ul>
      </
    li>
      <
    li>Item two</li>
      <
    li>Item three</li>
      <
    li>Item four</li>
     </
    ul
    or with definition lists
    PHP Code:
    <dl>
     <
    dt>item1</dt>
     <
    dd>subitem1</dd>
     <
    dd>subitem2</dd>
     <
    dd>subitem3</dd>
     <
    dd>subitem4</dd>
     <
    dt>item2</dt>
     <
    dd>subitem1</dd>
     <
    dd>subitem2</dd>
     <
    dd>subitem3</dd>
     <
    dd>subitem4</dd>
    </
    dl

  6. #6
    take note that ul(/ol) elements in nested lists are inside li elements

  7. #7
    200
    posts
    Every1 in Scotland duz it
    take note that ul(/ol) elements in nested lists are inside li elements
    can you be more clear please

  8. #8
    I'm pretty sure he means the nested ul, inside the larger ul, is nested within an li element.


    K-Emmys-06: Best Footer; and K-Emmys-06: Most Active Member

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012