To create multiple columns, you can use the columns
class element and place a button inside each column
element with the is-fullwidth
class.
<div class="columns">
<div class="column is-2">
<button class="button is-outline is-primary is-fullwidth" id="acceptBtn">Ok</button>
</div>
<div class="column is-2">
<button class="button is-outline is-secondary is-fullwidth ml-5" id="cancelBtn">Discard changes</button>
</div>
</div>
You can add as many buttons as needed within the column elements.
The width of the buttons will be determined by the column
elements and the is-fullwidth
class will expand them to fit the container.
If you prefer a more concise code, you can try this:
<div class="columns">
<button class="button is-outline is-primary is-fullwidth column is-2" id="acceptBtn">Ok</button>
<button class="button is-outline is-secondary is-fullwidth ml-5 column is-2" id="cancelBtn">Discard changes</button>
</div>
Adding the is-fullwidth column is-2
classes directly to the <button>
tags is also a valid approach.