.orderList:nth-of-type(1) { counter-reset: ol; } .orderList > li { counter-increment: ol; } .orderList > li::marker { content: counter(ol) ". "; }