Adding a class to divs within other divs based on parent div


I have the following code:

<div class="row table">
  <div class="large-5 columns">
    <div class="row">Header1</div>
    <div class="row">Header2</div>
    <div class="row">Header3</div>

What I would like to do is apply a class to all the <divs> with a class of “row” after the div with the first class of “row”.

I tried the dollowing CSS, but it didn’t work. Any ideas what I have wrong?

div.table > .div row{
padding: 1rem;
background: #000;
color: #fff


Shouldn’t that be




This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.