I'm trying to customize the background color of alternating rows in a Bootstrap 3 grid. I attempted to use CSS and add it to the class within the div, but unfortunately, the color isn't changing as expected.
Below is the CSS code I used:
.row-buffer {
margin-top:20px;
margin-bottom:20px;
}
.row-even {
background-color:#76A0D3;
}
.row-odd {
background-color:#BDE3FB;
}
Here's how I defined my rows:
<div class="row row-buffer row-even">
or:
<div class="row row-buffer row-odd">
While the row-buffer style is working perfectly fine, the row-even and row-odd styles don't seem to be taking effect. (Please note that my rows are contained within a container.)
Could someone guide me in the right direction here?