I'm attmepting to style the background color of the "SelectedDayStyle" attribute of the calendar component with CSS. But no matter what I do, the background color always appears as gray. My code snippets are shown below:
ASP:
CSS:Code:<asp:Calendar ID="myCalendar" OnSelectionChanged="displayDates" OnLoad="displayDates" Runat="server" CssClass="calendar" NextMonthText=">>" PrevMonthText="<<"> <TodayDayStyle CssClass="today" /> <DayStyle CssClass="day" /> <OtherMonthDayStyle CssClass="otherMonth_day" /> <TitleStyle CssClass="title" /> <NextPrevStyle CssClass="changeMonth" ForeColor="white" /> <SelectedDayStyle CssClass="selectedDay" /> </asp:Calendar>
All my other elements are styled just fine in CSS. Has anyone else tried setting the background color of the SelectedDayStyle via an external CSS file?Code:.selectedDay { background-color: #000000; background: #000000; }


Reply With Quote
Bookmarks