LoginSignup
0
0

More than 3 years have passed since last update.

olの数字を右揃えにする

Posted at

ol.{
counter-reset: item;
list-style-type: none;
padding-left: 0;
margin-bottom: 100px;
}

ol. li{
text-indent: -1.6em;
padding-left: 2.2em;
margin-bottom:20px;
}
ol. li:before {
counter-increment: item;
content: counter(item)'.';
text-align: right; /ここ/
display: inline-block; /ここ/
/* 以下は自由に装飾... */
padding-right: 1.6em;
font-weight: bold;
color: #123262;

}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0