There have been posts on this. I have done this:
.fc table tr td:nth-child(odd) {
border-collapse: collapse;
border-spacing: 0;
background: rgba(240,240,247,1);
font-size: 1em
}
(also tried with .fc-scrollgrid -- all the same)
but that gives the 2 colors on alternating columns, not rows, since the tr's go by weekday.
So one post (from 5 years ago) which suggests
.fc-day-grid > div.fc-row:nth-of-type(even) {
background: #CCC;
}
says:
Also, you need to target the series of elements which represent the rows - they are not a table. They're inside a table, and there are more tables inside them, but the rows themselves are actually
<div>s (you can see this when you inspect the rendered HTML of the calendar using your browser tools).
But when I look in the browser at these events in the browser, I don't see any divs in there. I don't know which element to target to get this to work.
I am trying to apply this to the month view (dayGridMonth) in fullCalendar 5.7
Any ideas? -- Thanks