I would like to get the same width size for my horizontal & vertical butons. I used flex-basis (which by the way doesn't work for me in the code snipet here...) but the problem is flex-basis in column mode will adjust the height and not the width. What would be a better way to do it ?
#adjustButonVertical {
position: absolute;
display: flex;
flex-direction: column;
top: 20px;
}
#adjustButonHorizontal {
position: absolute;
display: flex;
flex-direction: row;
top: 0px;
left: 10%;
}
#adjustButonHorizontal>* {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 200px;
}
#adjustButonVertical>* {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 200px;
}
<div class="container">
<div id="adjustButonHorizontal">
<button id="buton1" class="btn btn-primary" type="button">buton1</button>
<button id="buton2" class="btn btn-primary" type="button">buton2</button>
<button id="buton3" class="btn btn-primary" type="button">buton3</button>
<div id="adjustButonVertical">
<button id="buton4" class="btn btn-primary" type="button">buton4</button>
<button id="buton5" class="btn btn-primary" type="button">buton5</button>
<button id="buton6" class="btn btn-primary" type="button">buton6</button>
</div>
</div>
</div>