Initially, I want to build a single button like this
I could not figure out how to put them all inside one button, therefore I create two buttons to perform the same functionality inside a same container.
But the text is not aligned vertically as here.
I tried within-line block and text-align but they just do not work well.
My css is like this:
.button_tab {
overflow: hidden;
background-color: rgba(49, 63, 92, 1);
border: none;
text-align: center;
text-decoration: none;
display: inline-block;
cursor: pointer;
border: none;
}
.button {
white-space: pre;
color: rgba(240, 167, 54, 1);
border: none;
vertical-align: middle;
text-align: center;
background-color: rgba(0, 0, 0, 0);
display: inline-block
}
My html looks like this:
<span class="button_tab">
<button class="button">
Tue
Jun</button>
<button class="button">
24
</button>
</span>
Any ideas on how to align the buttons and text inside?
Thanks!


