I am facing an issue with a grid section where the grid-template-column
is set for 3 columns, but sometimes the content loaded dynamically only fills 2 columns. I am attempting to center the columns when there are only 2.
Despite going through the grid CSS documentation and experimenting with various CSS solutions, I have not been able to achieve the desired outcome.
.wrapper {
grid-template-columns: repeat(3,1fr);
display: grid;
align-items: stretch;
}
.items {
display: block;
}