Aside, flex or grid children do not really need to be reset to block if it is an inline element , they become part(cells) of the generated grid . (float is also ignored)
Solution 2 :
Use align-items: center; in your .btn-group instead of text-align: center;.
For further information this site is very helpful.
Problem :
I would like to put 2 buttons on top of each other while still keeping both of them centered. I managed to put them on top of each other through the display: block, and through the flex-direction: column. However, I still don’t know how to center them. The text-align doesn’t seem to work. could somebody explain to me why this doesn’t work, please?