1 2 3 4 5 6 7 8 9 10 11 12 13

All that is left to us to do is to use these newly-created classes to give light background colors to the chosen week and day.

td.today {
  background: #809FFF;
  font-weight: bold;
}
tr.thisweek {
  background: #FFFFBF;
}

For added measure, I’ve also emboldened the current date.

h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  margin: 1em 0 0 0;
  text-align: center;
}
table {
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: .8em;
  margin: auto;
  text-align: center;
}
th, td {
  width: 3em;
  height: 3em;
}
th {
  font-weight: normal;
}
td {
  border: 1px solid #CCCCCC;
}
td.today {
  background: #809FFF;
  font-weight: bold;
}
tr.thisweek {
  background: #FFFFBF;
}

April 2007

Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

May 2007

Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31