-table, th, td {
- border: solid 1px black;
+table {
border-collapse: collapse;
}
-th:nth-child(even) {
+table .row.month th {
+ color: white;
+ background-color: gray;
+ border: solid 1px black;
+}
+
+table .row.monthday {
background-color: lightgray;
}
function addMonthDaysHeader()
{
let monthdaysheader = document.createElement("tr");
+ monthdaysheader.classList.add("row");
+ monthdaysheader.classList.add("monthday");
let date = new Date();
for (let i = 1; i < 13; i++) {
function addMonthHeader()
{
let monthheader = document.createElement("tr");
+ monthheader.classList.add("row");
+ monthheader.classList.add("month");
const monthnames = [ "Januar", "Februar", "März", "April", "Mai", "Juni",
"Juli", "August", "September", "Oktober", "November",
"Dezember" ];