<ol class="cp_clist">
<li>css</li>
<li>html</li>
<li>copy</li>
<li>easy</li>
</ol>
ol.cp_clist {
padding: 0;
counter-reset:cp_clist; /*数字をリセット*/
list-style-type: none;
}
ol.cp_clist li {
position:relative;
border: solid 1px #00BCD4;
border-radius:20px;
min-height: 30px;
padding:0 20px 0 40px;
margin: 0 0 7px 0px;
transition: 0.3s;
}
ol.cp_clist li::before {
position: absolute;
top: 0px;
left: 0px;
display: flex;
justify-content: center;
align-items: center;
/* カウントさせる */
counter-increment: cp_clist;
content: counter(cp_clist);
/*装飾*/
background: #00BCD4;
color: #fff;
width: 30px;
height: 30px;
border-radius: 50%;
/*位置の調整*/
padding: 0;
margin: 0 0 0 0px;
}
ol.cp_clist li:hover{
background: #00BCD4;
color: #fff;
}
ol.cp_clist li:hover:before {
background: #fff;
color: #00BCD4;
}