|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello, I got the calendar to load fine, was able to add events and users... Now I'm trying to integrate the calendar into my css and the standard ltw Calendar style has overridden my master external stylesheet. When I view the source code from other pages I see the standard ltw_header.php populating from somewhere. Every page has the H1 title of ltw Calendar on it. I modified the ltw_header.php, but it's not the header file showing up in the view source code. If I change the stylesheet reference in the calendar header to my master stylesheet, it blows up all the important calendar table formatting. I even tried removing the effect of the calendar files by putting an x- in front of the private and calendar folder names to disrupt the filepath, and the ltw stylesheet is still overriding my css.
Can someone explain how to join the calendar style with a master external stylesheet? |
|
#2
|
|||
|
|||
|
Quote:
I've actually created a custom header that calls on my master stylesheet style.css. Using this method and commenting out (/* code */) ltw_style.css, I am able to have my master style sheet generate my calendar's style. What's important to remember is that ltw_calendar utilizes its own custom classes for its style, which you should add to your master style sheet. Code:
a.prevnext:link {}
a.prevnext:visited {}
a.prevnext:hover {}
a.prevnext:active {}
a.day:link {}
a.day:visited {}
a.day:hover {}
a.day:active {}
a.event:link {}
a.event:visited {}
a.event:hover {}
a.event:active {}
a.admin:link {}
a.admin:visited {}
a.admin:hover {}
a.admin:active {}
table.cal {}
.caption {}
.thead {}
td.cal {}
tfoot.cal {}
ul.cal {}
.cal-admin-link {}
If you view the source of your main calendar page, and use CTRL+F or Apple+F, you will find where each class is used and decide how you want to customize it. Note: I only commented out the ltw_style.css so that I may keep it for future reference. You could delete it if you wanted to. |
|
#3
|
|||
|
|||
|
Thanks much for taking the time to list out the calendar styles. I look forward to using your technique in future projects. By the way, the calendar is really great! It works well and is well documented for understanding how to handle it. All the best to you.
Last edited by Main Jane : May 5th, 2009 at 06:32 PM. Reason: wanted to add something |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Integrate Calendar CSS with Master External Stylesheet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|