
プロパティcounter-incrementを使うと、
liなどの要素に番号を自動的に付与することができます。
リスト(list-style-type: decimal)のような感じです。
counterを適用する要素に対しbeforeやafter要素を付け
プロパティでカウンタ名を指定することで連番をつけることができます。
ol {
counter-reset: li;
list-style: none;
padding: 0;
margin-bottom: 4em;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}







