Numeration of comments

  • Author
    Posts
  • #42868

    msteingass
    Member

    Hi

    I try to put in a numeration of the comments via CSS. I use this:

    .commentlist {
    list-style: decimal;
    }

    But it doesn’t work.

    Do you have any idea why it doesn’t work. It works well with the Able theme.

    Thanks for any help, Matthias

    The blog I need help with is unbuddhist.com.

    #43050

    Hey there,

    With this theme the comments are displayed as a table.

    This would help:

    #comments > ol > li, #comments > ul.children > li {
    display: list-item;
    }

    You may also need to add some padding/margin to the ordered list.

    Hope this helps!

    Kind Regards,
    Scott

    #43061

    msteingass
    Member

    Hi Scott

    Thanks for your help. But I don’t get it.

    my css looks like this now:

    #comments {padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;}

    #comments > ol > li, #comments > ul.children > li {
    display: list-item;
    }

    I tried different values for padding and margin but I nowhere get numbered comments.

    Do you have any idea?

    Can you give some further hints what I do wrong?

    Best, Matthias

    #43067

    You still need to have the decimal list-style.

    Try:

    #comments > ol > li, #comments > ul.children > li {
    display: list-item !important;
    margin: 0px 0px 0px 40px;
    padding: 0px;
    }
    
    #comments li {
    list-style: decimal;
    }

    Thanks again,
    Scott

The topic ‘Numeration of comments’ is closed to new replies.