I want to create a row of multiple buttons to form a coherent block in jQuery Mobile. For this, I placed them in a horizontal controlgroup. This approach works well for simple labels, but now I want to have one or more buttons with two rows of text on them. For example:
<form>
<fieldset data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="minus" data-iconpos="left">Left</a>
<a href="#" data-role="button">Middle item<br/><sub>Second row</sub></a>
<a href="#" data-role="button" data-icon="plus" data-iconpos="right"></a>
</fieldset>
</form>
My problem is that the multi-row labels appear fine, but the other buttons on the row still have a width appropriate for a single-row label (or no label). The result looks like this:
How can I ...
- make all the buttons have the same height?
- center the one-row button labels vertically to the new height?
- center the icons vertically?