This worked for my jQuery mobile app:
.ui-btn { height: 200px; font-size: 48px; }
But make sure css occurs after loading jQuery mobile css (specifically: jquery.mobile.structure.css)
If this still causes problems, try wrapping the buttons in the container and use:
#container-id .ui-btn { height: 200px; font-size: 48px; }
If STILL gives you problems, you can always (not recommended) use the important operator:
.ui-btn { height: 200px !important; font-size: 48px !important; }
But then again, the βimportantβ statements are REALLY not recommended, I usually use them only as a performance check to make sure that I select the correct item during debugging.
EDIT:
If you want a dynamic route:
JQuery Code:
$(document).ready(function() { styles = { 'height': '200px', 'font-size': '48px' }; $('.ui-btn').css(styles); });
This should work ... although now that I think about it, I think jquery mobile is doing some javascript processing (I know that it wraps your markup in a div with a link to the current page URL).
source share