My Vue-generated buttons need to be evenly laid out on the bottom of the page, with equal space on the left and right. The mdui button style I am using has fixed width and height, so I have to decide between a single row for fewer buttons (less than three or four) or two rows for more buttons (exceeding the mobile page's width).
I attempted using
<div class="bottomBtn" style="display:flex; flex-wrap:wrap;">
but it did not work as expected. I find div boxes confusing. How can I achieve the desired layout?
https://i.sstatic.net/HtMBO.png
My goal is to have the buttons evenly spaced on the bottom, but currently, they are all left-aligned as shown in the image.
<div class="bottomBtn">
<button class="mdui-btn mdui-btn-raised">Save</button>
<button class="mdui-btn mdui-btn-raised" v-if="pullDisplay">PullBack</button>
<button class="mdui-btn mdui-btn-raised" v-if="cancelDisplay">Cancel</button>
<button class="mdui-btn mdui-btn-raised" v-if="reviseDisplay">Revise</button>
<button class="mdui-btn mdui-btn-raised" v-if="sendDisplay">SendBack</button>
<button class="mdui-btn mdui-btn-raised" v-if="approvalDisplay">Approval</button>
</div>