I am facing an issue with my jQuery mobile buttons that are placed inside a fieldset
. Specifically, I need to adjust the font-size
of one of the buttons. Despite attempting to add an inline style, it did not have the desired effect.
Furthermore, I tried using the following CSS code without success:
.myButton
{
word-wrap: break-word !important;
white-space: normal !important;
}
The problem arises on iPhones due to the screen size, causing the "Request Change" button text to be cut off.
Is there a solution that will allow me to modify the font-size
of the button text to prevent it from being truncated?
HTML:
<fieldset class="ui-grid-a">
<div class="ui-block-a">
<input data-mini="true" type="submit" value="Cancel" name="Submitbutton" class="button button-link"/>
</div>
<div class="ui-block-b">
<input data-mini="true" data-theme="b" type="submit" value="Request Change" name="Submitbutton" class="button button-link" />
</div>
</fieldset>
I have explored the following resources but have yet to find a suitable solution:
- jquery mobile button text auto line break
- Change font size of a jQuery Mobile button at runtime