pタグに指定してるcounter-increment: numberのcssのカウントしたいのですが、1,2にならないです
レクチャー頂ければ幸いです。
<div class="lst_ol01"> <section class="cf"> <h3 class="tit_03">メニュー</h3> <p><a href="beauty_acupuncture.html">xxxx</a> <br><span class="bold">xxxx</span></p> </section> <section class="cf"> <p><a href="female_body.html">xxxx</a> <br><span class="bold">xxxx</span></p> </section> </div>
scss
.lst_ol01 { margin: 1.0rem 0 1.0rem 2.6rem; p{ line-height: 1.4; counter-increment: number 1; text-indent: -1.0rem; padding: 0 0 1.0rem 0; &::before { display: inline-block; content: counter(number)"."; margin-right: .8rem; font-family: 'Lato', sans-serif; color: $clr_txt; font-weight: bold; } span { color: #01796e; } } }

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/08/05 06:26
2022/08/05 07:14