Page 1 of 1

***css_calendar*** question

PostPosted: Sat Jun 04, 2005 6:42 am
by Dburkhead
I know nothing about cascading style sheets, However I do try to avoid deliberately puttnig broken links on my page,like those "W" links in the standard calendar, so I'm using the ***css_calendar*** sime some style code I got from another thread to remove them.

So far, so good. However, what I would like to do is, if possible, set up the calendars so that they look like the standard calendars, color scheme and all, just without the "W" tags. I think the standard calendar looks better with Phalanx's "charcoal" template than what's on my page now. Can this be done and how? I reiterate, I know nothing about CSS so any explanation will have to be in simple terms.

PostPosted: Sat Jun 04, 2005 7:14 am
by Phalanx
Hmm... I think you can just replace the ***css_calendar*** tag with ***calendar*** and it should work.

PostPosted: Sat Jun 04, 2005 7:50 am
by Dburkhead
I used the ***calendar*** tag originally, but I wanted to get rid of the "W" links which lead nowhere. I'm just wondering if I can get the benefits of both, the color scheme of the ***calendar*** tag and the lack of the "W" links that can be set in the ***csscalendar*** tag.

PostPosted: Sat Jun 04, 2005 10:20 am
by Plothole
I see what I can do...

PostPosted: Sat Jun 04, 2005 12:15 pm
by Plothole
Here we go....
Code: Select all
.ks_calendar {font-weight: bold; border-collapse: collapse;}
.ks_calendar td {padding: 1; text-align: right;}

.ks_cal_title a {vertical-align: super; font-size: smaller;}
.ks_cal_row {text-align: right; padding: 0;}
.ks_cal_nm_c { background:#b0b0b0;}
.ks_cal_nm_e { background:#b0b0b0; color: #000000;}
.ks_cal_c { background:#d0d0d0; text-align: right; }
.ks_cal_e {background:#d0d0d0; color: #000000;}
.ks_cal_today { background:#ffffff;}

.ks_cal_wk_e ,.ks_cal_wk_c, .ks_cal_wk{display:  none}

Just replace your current styles with this. It already includes the no-week string.

Minor thing: The title for the original calendar was designed to include the width of the W column. Because of which, said title may stretch the calendar just a bit with the addition of a next month link in your archive.

PostPosted: Sat Jun 04, 2005 4:28 pm
by Dburkhead
Great. That did it. Also worked on the big calendar so I'm set.