This is a migrated thread and some comments may be shown as answers.

White text calendar header titles on colored background

1 Answer 77 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Dec 2011, 04:59 PM
I'm trying to style the Month text in the calendar component in the header to add a colored background with white text. However, it seems that all the links are tied to the k-link css style, so changing the text color also changes the color of the days in the calendar as well, which are also on a white background.  I've attempted to add my own style, but it breaks the header, or goes totally ignored.  Please advise as to the steps needed to separate the header style from the overall link style in the component,

Thanks

M

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Dec 2011, 10:59 AM
Hello Mark,

In order to set background and color styles to the Calendar header, you should use a specific selector, so that the styles are not applied to other widgets using the same CSS classes.

.k-calendar .k-header
{
      background: ... ;
}

.k-calendar .k-header .k-link
{
      color: ... ;
}


Best wishes,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Calendar
Asked by
Mark
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or