I'm attempting to customize the jQuery spinner with styling applied like this:
<span class="ui-spinner ui-widget ui-widget-content ui-corner-all" style="height: 14px;">
<input id="testSpinner" class="ui-spinner-input" name="value" aria-valuemin="9" aria-valuemax="1550" autocomplete="off" role="spinbutton" aria-valuenow="9"></input>
<a class="ui-spinner-button ui-spinner-up ui-corner-tr" tabindex="-1"></a>
<a class="ui-spinner-button ui-spinner-down ui-corner-br" tabindex="-1"></a>
</span>
My goal is to stack the two buttons, however, I'm facing difficulty in moving the "up" button up and the "down" button down. I have successfully shifted the down button left by overriding the ui-spinner-down
class and setting margin-left: -3.2rem
, but adjusting margin-top
/ margin-bottom
has not yielded results.
As jQuery defines the height: 14px;
within the span
tag, modifying that value proves to be a challenge as well.
Current Status:
Desired Outcome: