I have a responsive website, using bootstarp. In one of the pages I have a simple list of divs, like so:
<div class="row">
<div class="holder col-md-3"><div class="block_content">1</div></div>
<div class="holder col-md-3"><div class="block_content">2</div></div>
<div class="holder col-md-3"><div class="block_content">3</div></div>
<div class="holder col-md-3"><div class="block_content">4</div></div>
:
:
<div class="holder col-md-3"><div class="block_content">20</div></div>
</div>
The frontend is using react, if that matters. I am looking to implement a feature where each new line will have a different color.
I don't know how many items there will be, but I know the upper limit should be around 20 (so with col-md-3, it means 5 rows).
But I have seen that for small screens, sometimes bootstrap breaks the row after 3 items, not 4.
Is there a way to achieve different color per row?