nevets2001uk
IS-IT--Management
Hi,
I have a asp.net calendar control on one of my web pages and would like to control it's appearance via my external cascading style sheet. The code for the control is currently as follows...
<asp:Calendar
ID="calCalendar"
cssClass="CalendarControl"
DayNameFormat="FirstLetter"
Font-Size="12px"
PrevMonthText="<img src='schemes/bluegrey/images/previousarrow.gif' border='0' alt='Previous Month' />"
NextMonthText="<img src='schemes/bluegrey/images/nextarrow.gif' border='0' alt='Next Month' />"
ShowNextPrevMonth="True"
Width="100%"
DayStyle-BackColor="#D9E4E8"
CellSpacing="2"
BorderStyle="None"
TitleStyle-BackColor="Transparent"
TitleStyle-Font-Bold="True"
OtherMonthDayStyle-ForeColor="#B2B2B2"
DayHeaderStyle-BackColor="#D0D0D0"
Runat="Server" />
I've tried this in my css but it didn't seem to affect the appearance at all
.calendarcontrol { daynameformat : firstletter; callspacing : 2px; }
and after removing those lines from the asp.net code it reverts to it's default appearance for those elements.
Is it possible to control all of the above elements with CSS?
Thanks,
Steve
Steve Gordon
I have a asp.net calendar control on one of my web pages and would like to control it's appearance via my external cascading style sheet. The code for the control is currently as follows...
<asp:Calendar
ID="calCalendar"
cssClass="CalendarControl"
DayNameFormat="FirstLetter"
Font-Size="12px"
PrevMonthText="<img src='schemes/bluegrey/images/previousarrow.gif' border='0' alt='Previous Month' />"
NextMonthText="<img src='schemes/bluegrey/images/nextarrow.gif' border='0' alt='Next Month' />"
ShowNextPrevMonth="True"
Width="100%"
DayStyle-BackColor="#D9E4E8"
CellSpacing="2"
BorderStyle="None"
TitleStyle-BackColor="Transparent"
TitleStyle-Font-Bold="True"
OtherMonthDayStyle-ForeColor="#B2B2B2"
DayHeaderStyle-BackColor="#D0D0D0"
Runat="Server" />
I've tried this in my css but it didn't seem to affect the appearance at all
.calendarcontrol { daynameformat : firstletter; callspacing : 2px; }
and after removing those lines from the asp.net code it reverts to it's default appearance for those elements.
Is it possible to control all of the above elements with CSS?
Thanks,
Steve
Steve Gordon