Center align RadDateTimePicker in a table

2 posts, 0 answers
  1. Mark
    Mark avatar
    37 posts
    Member since:
    Jan 2015

    Posted 08 Jan 2015 Link to this post

    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
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 13 Jan 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top