ASP.Net Calendar Control styling background behind title

1.4k Views Asked by At

I'm trying to remove grey background behind calendar title but not having any luck. This is the default calendar control found in the toolbox. Can anyone see what I'm missing?

My best guess was:

#Calendar1 td
{
    background-color: transparent;
}

but didn't work. I can't seem to get a handle to that background color.

enter image description here

2

There are 2 best solutions below

1
On BEST ANSWER

You need to use the TitleStyle-BackColor="Transparent" property like

<asp:Calendar ID="Calendar1" runat="server" TitleStyle-BackColor="Transparent">
</asp:Calendar>
0
On

Source: Calendar Class

Try setting the BorderWidth property to 0 and BackColor property to transparent.

ASP.NET Example

      <asp:Calendar id="calendar1" runat="server">
           <BorderWidth = "0">
           </BorderWidth>

           <TitleStyle BackColor = "Transparent">
           </TitleStyle>
      </asp:Calendar>