calendar formating RRS feed

  • Question

  • User2137067642 posted
    I am having a problem with the calendar formatting. everything is working except for the titlestyle tag. No matter what I do, it keeps on showing up as the background color/image from my css link. here is my css code A:link, A:visited, A:active, A:hover { } A:link { color: #0000FF; } A:visited { color: #551A8B; } A:active { color: #FF0000; } A:HOVER { color: ; background-color: ; } .onbody{ color: ; } .onbody A:LINK { color: ; } .onbody A:VISITED { color: ; } .onbody A:ACTIVE { color: ; } BODY,P,TABLE,TD,TH,TR { font-size: 10pt; font-family: Arial, Verdana, Helvetica, sans-serif; color: #000000; background-color: #E2DFC8; } TH { font-weight: 700; } PRE { font-size: ; font-family: ; } .leftnav { background-color: #ECECEC; } .leftnavouter { background-color: #a4a69d; } .welcome { color: #e2dfc8; background-color: #333333; } .banner { color: #e2dfc8; } .rightside { background-color: #39456e; } .nofiles { color: #a4a69d; } .splt_headline { color: #008000; text-align: center; font-size: 150%; font-weight: 700; } .splt_feature { color: #FF0000; font-weight: 700; } .splt_progname { color: ; font-size: 110%; font-weight: normal; } .splt_download { font-weight: 700; } Any ideas.
    Sunday, September 1, 2002 2:02 PM

All replies

  • User-169867363 posted
    Hi Instead of using style sheets you can set the properties of calendar. for the properties: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolscalendarclasstopic.asp or http://samples.gotdotnet.com/quickstart/aspplus/doc/webtemplates.aspx or <ASP:Calendar CssClass="calstyle" runat="server" BackColor="Beige" ForeColor="Brown" BorderWidth="3" BorderStyle="Solid" BorderColor="Black" Height="450" Width="450" Font-Size="12pt" Font-Name="Tahoma,Arial" Font-Underline="false" CellSpacing=2 CellPadding=2 ShowGridLines=true TitleStyle-BorderColor="darkolivegreen" TitleStyle-BorderWidth="3" TitleStyle-BackColor="olivedrab" TitleStyle-Height="50px" DayHeaderStyle-BorderColor="darkolivegreen" DayHeaderStyle-BorderWidth="3" DayHeaderStyle-BackColor="olivedrab" DayHeaderStyle-ForeColor="black" DayHeaderStyle-Height="20px" DayStyle-Width="50px" DayStyle-Height="50px" TodayDayStyle-BorderWidth="3" WeekEndDayStyle-BackColor="palegoldenrod" WeekEndDayStyle-Width="50px" WeekEndDayStyle-Height="50px" SelectedDayStyle-BorderColor="firebrick" SelectedDayStyle-BorderWidth="3" OtherMonthDayStyle-Width="50px" OtherMonthDayStyle-Height="50px" />
    Monday, September 2, 2002 8:07 AM
  • User2098018156 posted
    Any luck with getting the style sheet settings to work on your calendar title yet? I am having the same problem with the selected day style and the title. Please let me know if you have found any solution other than hard coding the style. Thanks
    Tuesday, September 10, 2002 1:55 PM
  • User1356982465 posted
    The calendar control does have a known bug where it does not support the cssStyle for Title. As far as I know its just Title, but maybe not.
    Tuesday, September 10, 2002 1:59 PM
  • User-1769785422 posted
    Its more than just the title... :-( I've struggle with this today. Here[1] is what I found out. [1] http://weblogs.asp.net/vga/archive/2004/02/01/CalendarsBuggyStyleHandling.aspx
    Saturday, January 31, 2004 11:35 PM
  • User1356982465 posted
    I saw someone once that inherited from the original calendar control and overrode a method or two to easily fix the title problem at least. I can't find it now, but it can't be that hard, even if you have to just override the render method and do a find/replace before outputing it.
    Sunday, February 1, 2004 10:22 AM