I have a set of divs, like this
<div class="row header"></div>
<div class="row"></div>
<div class="row"></div>
<div class="row"></div>
<!-- add spacing here by adding margin to the row above -->
<div class="row header"></div>
<div class="row"></div>
<div class="row"></div>
As I cannot change markup, I wonder if I can add a space between .row
and .row.header
only without making any changes to other divs. Ideally, I need to add margin-bottom
to every .row
that is put before .row.header
.
Is this possible with CSS at all without adding extra classes and hacks?