Center a button

2 posts, 0 answers
  1. Steve
    Steve avatar
    1871 posts
    Member since:
    Dec 2008

    Posted 02 Aug 2014 Link to this post

    How do you go about centering a button?  margin: auto doesn't seem to do anything, the button just sticks to the right side of the screen
  2. Tsvetina
    Tsvetina avatar
    2102 posts

    Posted 06 Aug 2014 Link to this post

    Hi Steve,

    You can use the Kendo Mobile Button styled as shown in this demo:
    Mobile Button / Events

    Additionally, if you do not want to use the Kendo Mobile button, here is one way to declare a centered button. Make sure that you set "display:block" in addition to the "margin:auto" setting:

    <button style="margin-left:auto; margin-right:auto; display:block;">Button</button>


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top