I have a unique structure resembling a table using div elements.
My goal is to alternate the background color of only the divLabels.
Each "table row" consists of a divLabel and a divData component.
Here is my attempt so far:
However, I am facing an issue where the labels do not alternate in color as expected. Instead, they display the same color for odd rows only:
.About_RowLabel:nth-of-type(odd) {
background-color: #DEF3CA;
}
If anyone could provide insight into why this does not work with my div elements, it would be greatly appreciated.