grid align left item to left middle of center right to right code example
Example 1: css grid align
.grid {
display: grid;
align-items: center; /* left and right */
justify-content: center; /* up and down */
}
Example 2: align divs vertically start new column after every row
.column-container {
column-width: 15rem; /* width of each column */
column-gap: 1rem; /* increase gap between each column */
width: 80%;
}
.column-container .column {
margin-bottom: 1rem;
}