<ol class="steps">
<li>Dice the potatoes and boil them in lightly salted water, until tender when jabbed with a fork.</li>
<li>Dice the potatoes and boil them in lightly salted water, until tender when jabbed with a fork.</li>
<li>Dice the potatoes and boil them in lightly salted water, until tender when jabbed with a fork.</li>
<li>Dice the potatoes and boil them in lightly salted water, until tender when jabbed with a fork.</li>
<li>Dice the potatoes and boil them in lightly salted water, until tender when jabbed with a fork.</li>
</ol>
.steps {
clear: both;
list-style: none;
padding-left: 2%;
}
.steps li {
margin: 2em 0;
padding-top: 1em;
display: block;
position: relative;
counter-increment: inst;
}
.steps li::before {
content: counter(inst);
background: rgba(255, 150, 0, 0.35);
color: #fff;
font-size: 1em;
font-weight: 700;
font-style: italic;
text-shadow: 1px 1px rgba(255, 150, 0, 0.5);
border-radius: 0 0.675em 0.675em 0;
font-size: 1.5em;
text-align: center;
padding-top: 0;
padding-left: 2.25%;
left: -5%;
top: -0.65em;
height: 1.35em;
width: 1.35em;
position: absolute;
transition: all 0.2s ease-in-out;
z-index: -1;
}
@media (min-width: 33em) {
.steps li:before {
border-radius: 50%;
font-size: 1.5em;
height: 1.35em;
margin-left: 2.5%;
padding-left: 0;
padding-top: 0;
top: -0.15em;
width: 1.35em;
z-index: -1;
}
}
body {
font-size: 25px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.