Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Battling li list-style-type appreing on a comments section

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #188554
    gaznev2000
    Participant

    Hi All, I’m just working on a site where the original dev had totally set the css wrongly, he has split the css of multiple stylesheets with no logical order.

    I have managed to get the css down to a manageable number of sheets, but I’m having a problem with a decimal list-style-type appearing at the top of the comments section. I have tried to set the comments section to:

    `
    .ol.comment-list { list-style-type: none; }

    `
    But it dosen’t seem to work. Can anyone give me a tip on how to remedy this issue?

    [Link to site] (http://www.naseeha.org/cum-soluta-nobis-est-eligendi/ ‘Link to site’)

    #188559
    Paulie_D
    Member

    It’s set here

    
    ol li {
    list-style-type: decimal;
    margin-left: 5px !important;
    }
    

    so

    
    .ol li.comment-list { list-style-type: none; }
    

    should get it done.

    #188563
    gaznev2000
    Participant

    Hi Paulie, thanks for the reply, I tried that but it didn’t work. I also tried:

    li .comment-list { list-style-type: none; }

    #comments li.comment-list { list-style-type: none; }

    But no go, think i’m missing something :-(

    #188584
    Paulie_D
    Member

    Then just remove this part?

    
    ol li {
    list-style-type: decimal; /* remove this */
    margin-left: 5px !important;
    }
    
    #188586
    Paulie_D
    Member

    That said, why use am ol in the first place…why not use a ul instead?

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.