下の画像のように、10進数とcss-ingのサブセクションを持つ順序付きリストを作成しようとしています。
しかし、これまでのところ、これ(下の次の画像)を取得することしかできませんでした。これには数字が含まれていますが、位置合わせされています。
これまでの私のコードは次のとおりです。
<style>
body{
width: 500px;
font-family: helvetica;
font-size: 12px;
counter-reset:section;
}
OL { counter-reset: item }
LI { display: block }
LI:before { content: counters(item, ".") " "; counter-increment: item }
p{
display:inline-block;
width: 400px;
}
</style>
<ol>
<li>
<strong>The Card</strong>
<ol>
<li><p>When you receive your Card, you will receive a PUK and you must choose a PIN.</p></li>
<li><p>You must either memorise the PIN or keep record of it in a safe place, separate from your Card. Do not tell anyone your PUK or PIN.</p></li>
</ol>
</li>
</ol>