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

HeaderStyle HorizontalAlign

3 Answers 34 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
terrysmith
Top achievements
Rank 1
terrysmith asked on 14 Aug 2009, 03:33 PM

This is not working for me:

 

 

<HeaderStyle HorizontalAlign="Left" />

I want to left-align the day header labels (S, M, T, W, etc.). I think the above should override the values set in any skin shouldn't it?

Thank you

 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 17 Aug 2009, 09:06 AM
Hi,

Try setting the alignment of the column headers through the CSS style and see whether it helps.

CSS:
 <style type="text/css"
    
     .RadCalendar_Sunset .rcWeek th 
     { 
             
        text-align:left !important; 
     } 
   </style> 

Thanks
Princy
0
terrysmith
Top achievements
Rank 1
answered on 17 Aug 2009, 02:50 PM
Thanks Princy,

Can someone from Telerik verify this as a bug first? Is there any other work-around? I would prefer to only add a CSS style as a last resort.

Thanks.
0
Dimo
Telerik team
answered on 18 Aug 2009, 12:53 PM
Hello Terry,

The HorizontalAlign ASP.NET property renders an align HTML attribute, which is considered now obsolete, according to web standards and best practices. This attribute cannot override text-align styles, which are used in the CSS skin. That's why you need to use a custom CSS rule, as Princy suggested.

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
terrysmith
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
terrysmith
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or