Archived topic
css grid not working in sections
1 reply · Started by Viktor on June 15, 2020
Viewing posts 1–2 of 2
See my example:
//*Advantages*//
.grid-advantge {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
grid-gap: 20px;
}
.grid-advantge .item-advantge {
border: 1px solid #212941;
}
//*Advantages*//
item-1
item-2
item-3
Why my code not working ?
Hi there,
your CSS Comments are breaking the code:
//*Advantages*//
Remove the additional / so it becomes
/*Advantages*/
This archived topic is closed to new replies.