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

Center align RadDateTimePicker in a table

1 Answer 280 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 08 Jan 2015, 01:21 PM
I have the following code in a table and the control is always left aligned:

<td style="text-align: center">
     <telerik:RadDateTimePicker ID="radDtStartDate" runat="server">
     </telerik:RadDateTimePicker>
</td>

How can I get this to be center aligned?

Mark

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 13 Jan 2015, 07:48 AM
Hello Mark,

In order to center the picker you can try out the following

ASPX:
<td style="text-align: center; vertical-align: middle;">
                     <telerik:RadDateTimePicker ID="radDtStartDate" runat="server">
                    </telerik:RadDateTimePicker>
                 </td>
More information on how to center an element inside a cell can be found here.

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar
Asked by
Mark
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or