Results 1 to 4 of 4

Thread: Sitemap not adding sibling class to LI element on one page

  1. #1
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Sitemap not adding sibling class to LI element on one page

    Hi,

    I'm building a site and I'm just adding a sitemap to the footer. It works fine except on one page.
    I'm using CSS on the sibling class to float the block left to each other as seen on the home page.
    http://www.ritsweb.co.uk/connectchur....php/home.html
    If you look on the whats on page then the sibling class does not exist on the li element so it doesn't display correctly.
    http://www.ritsweb.co.uk/connectchur.../calendar.html

    Any ideas why this might be?

    Thanks

    James

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: Sitemap not adding sibling class to LI element on one pa

    Strange indeed, seems that you're using another navigation template on that page. You also have a forbidden h3 in subnav and contaos templates usualy generate valid output.

    BTW You do not need the sibling selector, use
    Code:
    #footersitemap ul > li
    or
    Code:
    #footersitemap li
    #footersitemap li li
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Re: Sitemap not adding sibling class to LI element on one pa

    Thanks for the reply.
    I ended up using
    Code:
    #footersitemap ul.level_1 > li
    to get the desired effect. Without the .level_1 is was doing weird things with the next level ULs

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: Sitemap not adding sibling class to LI element on one pa

    Yes you're right. It has to be #footersitemap > ul > li else it would be the same as #footersitemap li. Or your variant.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

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