Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next

Problem with CSS interitance.
Old 12-15-2009, 10:46 PM   #1
SteveS
Calendar User
 
SteveS is offline
Join Date: Dec 2009
Posts: 20
Default Problem with CSS interitance.

I am having a problem with CSS interitance. I am adding a calendar to an already existing web page. In my already existing CSS file (not the one specific to calendar) I have

Code:
td {
  text-align: left;
  padding: 3px;
}
because most of my table data is aligned to the left. When data generated by calendar (such as navigation characters, or days in the calendar) is displayed within the calendar, all td's are left-justified when they are supposed to be center or right-justified. As a example, here is the HTML for the navigation characters below the calendar:

Code:
</table>
</td></tr></table><table width="580px"  border="0" cellspacing="0" cellpadding="0">  <tr> 
    <td align=left width="33%"><a href="index_cal.php?mo=9&amp;yr=2009" class=navTableText><<</a></td>
    <td align=center width="34%"><a href="index_cal.php?mo=12&amp;yr=2009" class=navTableText>-=-</a></td>
    <td align=right width="33%"><a href="index_cal.php?mo=3&amp;yr=2010" class=navTableText>>></a></td>
  </tr>
  </table>
Although the second <td> is listed as "align=center", the <td> is actually aligned to the left (inherited from the main CSS file). I have verified this using firebug in firefox (version 3.5.5) and the same results are shown using Internet Explorer. It seems CSS overrides the older align directive. I know I can rewrite my entire web page and change the blanket CSS directives to one specific to each <td> on my current page using ID's or classes, but I prefer not to do that as I have several other web sites where I want to use the calendar.

Any suggestions as to how I can solve this problem?

Great product BTW.

Thanks,
Steve
 
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Disabled Navigation Controls bsaum General Support 3 10-17-2008 08:16 PM
CSS problem mattejennings Customizations (Themes / Templates) 4 06-20-2008 06:00 AM
No CSS Problem? jakerz General Support 1 07-11-2007 07:05 PM
Event Manager CSS Problem... iwatason General Support 1 12-11-2006 06:44 PM
Graphics not displayed (css problem ?) sptkrishnan General Support 3 04-09-2004 12:04 PM



All times are GMT -4. The time now is 10:59 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |