ul { counter-reset: section; list-style-type: none;} li::before { counter-increment: section; content: counters(section,".") " ";}