ol { counter-reset: item }
ol li{ display: block }
ol li:before { content: counters(item, ".") ". "; counter-increment: item }