The code snippet provided below demonstrates a basic form with two submit buttons.
<form>
<input type="submit" value="< Previous">
<input type="submit" value="Next >">
</form>
Depending on the value
attribute, the buttons will have different sizes, as shown in the image below:
https://i.sstatic.net/6tGUX.png
Is there a way to ensure that the buttons are all the same size based on the widest button? I am using Bootstrap which might be an advantage...
I'm aware that I could set a fixed CSS width
to make the buttons equal in width. However, since I cannot predict the length of the values
in advance, this solution may not work effectively... or will it?