Page 1 of 1

[SOLVED] Highlight current day in CGCalendar

Posted: Fri Sep 04, 2009 6:15 pm
by punkn00dlez
Is there a way to highlight the current day in CGCalendar?  I've got my template set up correctly right now - but only by removing things and saying "oops, let's put that back in" so I didn't really learn too much about how to make it actually do things.  Is the highlighting actually doable?

Re: Highlight current day in CGCalendar

Posted: Sat Sep 05, 2009 4:04 pm
by paulbaker
If you look at the HTML source of your calendar page you should see

Code: Select all

<td class="calendar-today">5</td>
by today's date.  So you need to create a class in your style sheet called this.

In my case it looks like this:

Code: Select all

#cal-calendar .calendar-today
{
  background-color: #FFFACD;
}
so I have a nice light yellow background for today (and white for all other days).

(#cal-calendar is the DIV name for the table that shows this month).

Re: Highlight current day in CGCalendar

Posted: Tue Sep 29, 2009 5:03 pm
by punkn00dlez
Wow, sorry it took way to entirely long to get back to you, I was unaware anyone had replied.  I found that little tidbit already inside my css (I just used the sample one and modded it to suit my needs).  I changed the color and it works great.  Thanks for the heads up.