ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

need help with styling nested list in category archieve

June 17, 2010 2:36pm

Subscribe [1]
  • #1 / Jun 17, 2010 2:36pm

    FCCi

    4 posts

    I’m trying to either get rid of the nested ul that forms around the entry title else be able to style it. I tried to use style=linear but that just gets rid of the ul code I end up hard coding in.

    The styling of the category list works, it’s just the sub ul list that forms around the entry title that is getting to me.

    {exp:weblog:category_archive weblog="{my_weblog}" class="documents" show="61|62|63|64|65|66|67"}
           
    {categories}{category_name}{/categories}
    
    {entry_titles}
    {title}
    {/entry_titles}
    
    {/exp:weblog:category_archive} 
    
    
    The code ends up like this:
    
    <ul class="documents">
     <li>category1</li>
        <ul>
          <li>entry 1</li>
          <li>entry 2</li>
        </ul>
     <li>category2</li>
        <ul>
          <li>entry1</li>
         </ul>
    </ul>

    No matter what I do I can’t do anything to the sub <ul> code.

  • #2 / Jun 17, 2010 2:51pm

    Tyler Herman

    39 posts

    Did you try selecting it with more specificity like:

    ul.documents li ul { margin-right: 5px; etc… }
    ul.documents li ul li { font-size: 12px; etc… }
  • #3 / Jun 17, 2010 3:44pm

    FCCi

    4 posts

    Thank you. I was wondering how the css syntax would go.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases