Day 114
First time to play with CSS Grid
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
section {
margin: 10px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-row-gap: 2px;
grid-auto-rows: 250px;
/* grid-auto-rows: minmax(250px auto); */
/* justify-items: center; */
/* align-items: center; */
}
section div:nth-child(odd) {
background: #f1cbff;
grid-column: 1/3;
}
section div:nth-child(even) {
background: #e1f7d5;
grid-column: 2/4;
}
section p.sessions {
padding: 10px;
font-size: 2.5rem;
}
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
section {
margin: 10px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-row-gap: 2px;
grid-auto-rows: 250px;
/* grid-auto-rows: minmax(250px auto); */
/* justify-items: center; */
/* align-items: center; */
}
section div:nth-child(odd) {
background: #f1cbff;
grid-column: 1/3;
}
section div:nth-child(even) {
background: #e1f7d5;
grid-column: 2/4;
}
section p.sessions {
padding: 10px;
font-size: 2.5rem;
}
Comments
Post a Comment