jQuery Mobile doesn't seem to have a css class to center elements (I searched for its css).
But you can write your own additional css.
Try creating your own:
.center-button{ margin: 0 auto; }
HTML example:
<div data-role="button" class="center-button">button text</div>
and see what happens. You may need to set the alignment of the text to the center in the wrapper tag, so this might work better:
.center-wrapper{ text-align: center; } .center-wrapper * { margin: 0 auto; }
HTML example:
<div class="center-wrapper"> <div data-role="button">button text</div> </div>
naugtur Dec 09 '10 at 9:16 2010-12-09 09:16
source share