I found something weird on using .someclass:nth-of-type(odd) or (even), no matter what I change it keeps counting from the first div (which is on the other class). Please see the example
.mktoFormCol{width:500px;}
.toggle-profile{width:100%;}
.mktoFormRow{
width: 40%;
display: inline-block;
padding: 1rem;
background-color: #7bd5f0a3;
}
fieldset.mktoFormCol .mktoFormRow:nth-of-type(odd) {
background-color: #e60951a3;
}
<fieldset class="mktoFormCol">
<div class="toggle-profile">should not count from this</div>
<div class="mktoFormRow">1 left</div>
<div class="mktoFormRow">2 right</div>
<div class="mktoFormRow">3 left</div>
<div class="mktoFormRow">4 right</div>
<div class="mktoFormRow">5 left</div>
<div class="mktoFormRow">6 right</div>
</fieldset>
<fieldset class="mktoFormCol">
<div class="mktoFormRow">1 left</div>
<div class="mktoFormRow">2 right</div>
<div class="mktoFormRow">3 left</div>
<div class="mktoFormRow">4 right</div>
<div class="mktoFormRow">5 left</div>
<div class="mktoFormRow">6 right</div>
</fieldset>