Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Live Example:</p> <ul> <li><a href="http://jsfiddle.net/Pjvvx/" rel="nofollow noreferrer">http://jsfiddle.net/Pjvvx/</a> (Width)</li> <li><a href="http://jsfiddle.net/3DSGT/" rel="nofollow noreferrer">http://jsfiddle.net/3DSGT/</a> (Height)</li> </ul> <p>JS:</p> <pre><code>// For all buttons use something like this $('.ui-btn').css('width','50%'); // For individual buttons use something like this $('#theButton1').parent().css('width', '75%'); // Or this for HREF data-role buttons $('#hrefButton4').css('width', '45%'); // this changes the height for all buttons $('.ui-btn-text').css('font-size','50px'); // This changes the height for a single element $('#hrefButton3').children().children().css('font-size','30px'); </code></pre> <p>I think you're looking to do something like this:</p> <pre><code>$('#hrefButton3').children().children().css('font-size','10px'); </code></pre> <p>HTML:</p> <pre><code>&lt;div data-role="page" id="home"&gt; &lt;div data-role="content"&gt; &lt;input type="button" id="theButton1" value="Press Me 1" /&gt; &lt;input type="button" id="theButton2" value="Press Me 2" /&gt; &lt;input type="button" id="theButton3" value="Press Me 3" /&gt; &lt;input type="button" id="theButton4" value="Press Me 4" /&gt; &lt;br /&gt; &lt;a href="#" data-role="button" id="hrefButton1"&gt;HREF Me 1&lt;/a&gt; &lt;a href="#" data-role="button" id="hrefButton2"&gt;HREF Me 2&lt;/a&gt; &lt;a href="#" data-role="button" id="hrefButton3"&gt;HREF Me 3&lt;/a&gt; &lt;a href="#" data-role="button" id="hrefButton4"&gt;HREF Me 4&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Related: </p> <ul> <li><a href="https://stackoverflow.com/questions/7303035/resizing-a-button-through-css">resizing a BUTTON through CSS</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload