, ( :after .step-number) .step-# div. :
.step-1,
.step-2,
.step-3,
.step-4 {
...
position: relative;
}
.step-number:after {
position: absolute;
left: 50%;
bottom: 15px;
margin-left: 15px;
...
}
.step-number {
border-radius: 20px;
width: 30px;
height: 30px;
...
}
.step-number {
border-radius: 20px;
width: 30px;
height: 30px;
line-height: 30px;
border: 1px #AAA solid;
text-align: center;
display: inline-block;
background-color: #FFF;
}
.step-number:after {
content: ' ';
position: absolute;
left: 50%;
margin-left: 15px;
bottom: 15px;
width: 100%;
height: 1px;
background-color: #AAA;
}
.step-4 .step-number:after {
display: none;
}
.steps {
max-width: 1170px;
margin: auto;
overflow: auto;
}
.step-title {
min-height: 80px;
}
.step-1,
.step-2,
.step-3,
.step-4 {
width: 22%;
vertical-align: top;
display: inline-block;
text-align: center;
position: relative;
border: 1px #FAA solid;
}
@media screen and (max-width: 400px) {
.step-number:after {
content: none;
display: none;
}
}
<div class="steps">
<div class="step-1">
<div class="step-image">
<img src="https://placehold.it/100x100">
</div>
<div class="step-title">Measure Your Space</div>
<div class="step-number">1
</div>
</div>
<div class="step-2">
<div class="step-image">
<img src="https://placehold.it/100x100">
</div>
<div class="step-title">Your Kitchen is Designed</div>
<div class="step-number">2</div>
</div>
<div class="step-3">
<div class="step-image">
<img src="https://placehold.it/100x100">
</div>
<div class="step-title">Your Materials are Shipped</div>
<div class="step-number">3</div>
</div>
<div class="step-4">
<div class="step-image">
<img src="https://placehold.it/100x100">
</div>
<div class="step-title">Start contruction of your dream kitchen</div>
<div class="step-number">4</div>
</div>
</div>
Hide result, -, , .step-# .
@media screen and (max-width: 400px) {
.step-number:after {
content: none;
display: none;
}
}