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

Align dates in RadCalendar column headers

2 Answers 74 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Stacy
Top achievements
Rank 1
Stacy asked on 25 May 2012, 04:12 PM
How do I center align the week dates visible to the RadCalendar column headers? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 28 May 2012, 02:12 PM
Hi Stacy,

Try the following CSS to center align the week dates.

CSS:
<style type="text/css">
  .RadCalendar .rcWeek th
    {
      text-align: center !important;
    }
  .RadCalendar_Default .rcWeek th
    {
      padding: 0px !important;
    }
</style>

Thanks,
Princy.
0
Vasssek
Top achievements
Rank 1
answered on 09 Jul 2019, 07:16 AM

If someone wants to overriding styles without !important, here you go :-)

.RadCalendar tr.rcRow td {
    text-align: center;
}
 
.RadCalendar tr.rcWeek th {
    text-align: center;
}

 

Tags
Calendar
Asked by
Stacy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Vasssek
Top achievements
Rank 1
Share this question
or