JSFiddle - React, Tailwind, and code Playground
HTML
<div class="steps">
<ul>
<li>
<img src="http://tnsdev.cloudapp.net/dev/steps_icon.png" />
</li>
<li>
<img src="http://tnsdev.cloudapp.net/dev/steps_icon.png" />
</li>
<li>
<img src="http://tnsdev.cloudapp.net/dev/steps_icon.png" />
</li>
<li>
<img src="http://tnsdev.cloudapp.net/dev/steps_icon.png" />
</li>
<li>
<img src="http://tnsdev.cloudapp.net/dev/steps_icon.png" />
</li>
</ul>
</div>blah
CSS
* {
margin: 0;
padding: 0;
border: 0;
}
.steps * {
position: relative;
}
.steps {
width: 100%;
overflow: hidden;
background-image: url(http://tnsdev.cloudapp.net/dev/steps_slice.png);
background-repeat: repeat-x;
background-position: 50%;
}
.steps ul {
width: 119%;
list-style-type: none;
}
.steps li {
width: 20%; /* 1/5 of ul.width */
float: left;
}
.steps img {
width: 20%; /* 1/5 of li.width */
height: auto; /* Always "square" */
}