We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6681
    • 14 Posts
    Hi guys,

    I’m trying to change the styling of the UL using Listsitemap.

    The example given in the snippet is:

    // Styles
    //
    // .LSM_currentPage span surrounding current page if $selfAsLink is false
    // .LSM_description description of page
    // .LSM_N ul style where N is the level of nested list- starting at 0
    // .LSM_unpubPage span surrounding Unpub page title
    // .LSM_unpubPageLI Class for the li surounding the Unpub page title


    Its only the bold section that I need.
    Can somebody give me an example of how this should actually appear in the style sheet?

    Thanks in advance for your help.



      • 1778
      • 659 Posts
      Hello

      if you have a list with 3 levels of UL like


      <ul>0-UL will be in RED
      <li>0.1 text
      <ul>1-UL will be in GREEN
      <li>1.1 text
      <ul>2-UL will be in BLUE
      <li>2.1text</li>
      </ul>
      </li>
      </ul>
      </li>
      </ul>

      Your css should be
      // .LSM_N ul style where N is the level of nested list- starting at 0
      
      .LSM_0 {
        color: red;
      }
      
      .LSM_1 {
        color: green;
      }
      
      .LSM_2 {
        color: blue;
      }
      


      Hope this helps
      Cheers