flex to grid on the main section

This commit is contained in:
Alype 2025-08-21 22:09:24 +02:00
parent 333c7c6ae9
commit 47d4ef2363

View file

@ -13,9 +13,13 @@ body{
section{ section{
width: 100%; width: 100%;
/* affichage des images en lignes avec retour à la ligne (wrap)*/ /* affichage des images en lignes avec retour à la ligne (wrap)*/
display: flex; display: grid;
flex-direction: row; /* flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; */
grid-template-columns: repeat(3, 300px);
grid-template-rows: repeat(3, auto);
grid-gap: 26px;
justify-content: center; justify-content: center;
} }