I wish to make a button, using CSS grid, with the elements filling the full height of the container:
button {
display: grid;
height: 50px;
grid-auto-flow: column;
align-items: center;
}
.one {
color: white;
background-color: purple;
border-right: 1px solid red;
}
<button>
<span class="one">one</span>
<span class="two">two</span>
</button>
As one can see from the inspector, this is a single row, that doesn't fill the height of the container:
I'd like the grid to fill the container, so the whole left of the container is purple.