1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unordered list in sidebar block

Discussion in 'Styling and Customization Questions' started by Andy.N, Nov 30, 2011.

  1. Andy.N

    Andy.N Well-Known Member

    I'm trying to make a list of threads to put on a sidebar block. The content of the sidebar block template is

    PHP:
    <div class="section">
    <
    div class="secondaryContent">
    <
    h3>MOST POPULAR ITEMS</h3>
    <
    ul>
    <
    li><a href="some url"><strong>first item</strong></a></li>
    <
    li><a href="another url">second item</a></li>
    </
    ul>
    </
    div>
    </
    div>
    Obviously, it does not allow me to do html format inside secondaryContent class. Any suggestion?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You need to wrap the contents (list) in <div class="baseHtml">.
     
    Andy.N likes this.
  3. Andy.N

    Andy.N Well-Known Member

    Your help is appreciated, sir. Works perfectly now.
    Is this something in FAQ or can only be found out by trial and error?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It's required to reset the html back to "normal".
     
  5. borbole

    borbole Well-Known Member

    The best way would be to test things out at the test forum first. Exercise, exercise again and then exercise some more :D
     

Share This Page