This demo only works in browsers that support CSS Grid Layout. If you can see this message, then your browser isn't supporting Grid. You can try out Grid in other browsers by flipping a flag.
width = 400 px
1.00 : 400 px
1.00 : 400 px
1.00 : 400 px
1.00 : 400 px
Example :
Recopier (Ctrl+Maj+V) le CSS ci-dessous dans le simulateur :
Code à recopier dans .conteneur
|
redimensionnement
|
display : grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
padding :10px;
|
https://jsbin.com/netafuj/