Hello all, 

I want to be able to change the colors on my calendar days (just the one's with events) without it effecting every link on my site. Is this possible?

Thanks!

Tags: Calendar, events

Views: 93

Reply to This

Replies to This Discussion

Hi Robert, the following code is the exact code for your preference. Just copy and paste the code into advanced css box via my network> settings> appearance.

div.calendar td.future {
color: red;
}

div.calendar td.past.xg_lightfont {
color: green;
}

div.calendar td.present {
color: blue;
}

very nice Bernard, awesome of you to share!

These codes will automatically cross out past days put a border around the future days and color the present day
you can change the color lightblue to any color you would prefer.

This code Will only affect the event module's calendar not the event page calendar

.xg_module.module_events TD.present {background-color: lightblue !important;}
.xg_module.module_events TD.future {border: 1px solid lightblue !important;}
.xg_module.module_events TD.past { background-image: url(http://api.ning.com:80/files/Jec9iT2*pOjTVTAzA0p2xmtfLnsmGueFWYFEkeio6Q8MMdngwhxyk2jC76tnPpQJVDYA4SPmJPeMIQ0GkDRaMI56lEhOyrQ9/XImage.jpg);
   background-size:100% 100%; }
.module_events div.calendar div {position: relative; overflow: visible;}


This code will affect the calendars on the modules and the calendars on the event page

TD.present {background-color:lightblue !important;}
TD.future {border: 1px solid lightblue !important;}
TD.past { background-image: url(http://api.ning.com:80/files/Jec9iT2*pOjTVTAzA0p2xmtfLnsmGueFWYFEkeio6Q8MMdngwhxyk2jC76tnPpQJVDYA4SPmJPeMIQ0GkDRaMI56lEhOyrQ9/XImage.jpg);
 background-size:100% 100%; }
div.calendar div {position: relative; overflow: visible;}
.module_events div.calendar div {position: relative; overflow: visible;}

_

_

event module on the home page

_

_

and the event page

Even better George hahahahaha! The man with CSS LOL :D

Thank you all very much! Awesome stuff... I have implemented on my blog... If there is ever a way to highlight event days, please let me know. Thanks again!

They should already be highlighted for the event day but here you go

TD.future A{background-color: lightblue !important;}

perfect! that's just what I needed. Thx!

RSS

Latest Activity


NC for Hire
SweetPotato replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"I don't think I was critiquing your site. Not even looked at it to tell the truth. Eye of the…"
52 minutes ago

NC for Hire
SweetPotato replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"I hope paid access Ida bit more fleshed out them the previous iteration. Supporting multiple…"
1 hour ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"You know what, I figured this was in the making along with several other developments. Pricing is…"
1 hour ago
Profile IconNora Roste, Marisa, Cigdem Kobu and 4 more joined Creators
1 hour ago
Allison Leahy replied to soaringeagle's discussion '3.0 priority fix list'
"Great. Thanks!"
1 hour ago
Allison Leahy replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"Thanks for these extensibility and feature requests, Elshara. Expanding and improving social…"
1 hour ago
Jelena replied to soaringeagle's discussion '3.0 priority fix list'
"Very good points"
1 hour ago
Jelena replied to soaringeagle's discussion '3.0 priority fix list'
"oghhhhhhhhhhhhhhhhh yes "
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service