I have the following formats:
td:nth-child(6) { /* Saturday */
color: #ff7f7f;
}
td:nth-child(7) { /* Sunday */
color: #ff0000;
}
and later
.prevmonth, .nextmonth {
color: gray;
}
where prevmonth and nextmonth are classes in <td>-tags.
But the days from last month or next month are not shown in gray when they are a Saturday or Sunday.
Why the later format does not override the earlier format?
I helped myself by extending the earlier format with ...:not(.prevmonth, .nextmonth). That works fine.