Correction Exercice Imbrication
_main.scss
main {
display: grid;
align-items: center;
justify-content: center;
section.grid {
display: grid;
grid-template-rows: repeat(10, 50px);
& > section {
display: grid;
grid-template-columns: repeat(10, 50px);
/* les lignes */
/*&:nth-of-type(odd) {
background-color: black;
}*/
& > section {
border: 1px dotted black;
/* les colonnes */
/*&:nth-of-type(even) {
background-color: black;
}*/
}
}
}
}
02 July 2025