body { counter-reset: section; } h3::before { counter-increment: section; content: "Section." counter(section); } 
ol { counter-reset: section; list-marker-type: none; } li::before { counter-increment: section; content: counters(section, ".") " "; } 
Comments