Calendar's skin does not take CssClass?

Discussion in 'ASP .Net' started by Bogdan, Oct 5, 2009.

  1. Bogdan

    Bogdan Guest

    Hi,

    I've been styling controls like GridView, Buttons, Labels, etc. using themes
    (i.e. skin and css files). No issues with the above controls.

    I'm not able to use CssClass within a skin for the Calendar control. For
    example, the following works fine:
    <asp:Calendar runat="server" BackColor="White" BorderColor="#b5c667"
    BorderWidth="1px">

    <TitleStyle BackColor="#b5c667" ForeColor="#ffffff" Font-Bold="True" />

    <NextPrevStyle BackColor="#b5c667" ForeColor="#ffffff" Font-Bold="True" />

    <DayStyle ForeColor="#336dcc" />

    <TodayDayStyle BackColor="#eaf6fd" ForeColor="#336dcc"/>

    <SelectedDayStyle BackColor="#ffe6a1" ForeColor="#336dcc" Font-Bold="True"
    />

    </asp:Calendar>


    .... but this does not:
    Skin file:

    <asp:Calendar runat="server" CssClass="cal">

    <TitleStyle CssClass="calTitle" />

    <DayStyle CssClass="calDay" />

    <TodayDayStyle CssClass="calTodayDay" />

    <SelectedDayStyle CssClass="calSelDay" />

    </asp:Calendar>

    Css file:

    ..cal

    {

    background-color: #ffffff;

    }

    ..calTitle

    {

    background-color: #d1e07b;

    }

    ..calDay

    {

    color: Blue;

    }

    ..calTodayDay

    {

    background-color: #eaf6fd;

    }

    ..calSelDay

    {

    background-color: #ff0000;

    }


    Is this a known thing?

    Thanks,
    Bogdan
     
    Bogdan, Oct 5, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kai
    Replies:
    9
    Views:
    993
  2. Replies:
    4
    Views:
    8,311
    gulin
    Jun 9, 2008
  3. Daves
    Replies:
    0
    Views:
    859
    Daves
    May 12, 2006
  4. Daves
    Replies:
    0
    Views:
    2,544
    Daves
    May 19, 2006
  5. Steven Watanabe
    Replies:
    0
    Views:
    397
    Steven Watanabe
    May 4, 2006
  6. Jack Diederich
    Replies:
    1
    Views:
    1,080
    Serge Orlov
    May 4, 2006
  7. ago
    Replies:
    3
    Views:
    445
  8. Burkhard Hassel

    type Map does not take parameters ?

    Burkhard Hassel, Aug 9, 2006, in forum: Java
    Replies:
    2
    Views:
    4,638
    Mike Schilling
    Aug 10, 2006
Loading...