Numbered steps with CSS counters
Automatic numbers in nice circles.
CSS · Numbered steps with CSS countersIntermediate
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.steps li::before {
content: counter(step);
position: absolute;
left: 0;
top: 0;
width: 2rem;
height: 2rem;
border-radius: 50%;
background: #2563eb;
color: #fff;
display: grid;
place-items: center;
font-weight: 700;
}counterliststepscontent