Kevin Powell - CommunityKP-C
Kevin Powell - Community4y ago
26 replies
Myndi

Grid behavior

I don't really understand why this happens.
https://codepen.io/myntsu/pen/PoaeVyQ

The grid overflows because of this grid-template-rows: repeat(4, 25%); but shouldn't 25% summ up 100%? I changed to auto-fill instead and it fixes it.

Tried the all the possible methods before, why does it do that?

Also, how do you guys suggest to make this responsive in mobile?
Was this page helpful?