Using grid and on mobile overflows content
Hi there, I hope you fine.
I had a problem with CSS grid
As seen on image the mobile view have a overflow the css for the grid:
In DevTools when i select phone doesn't overflow
Thanks in advance
4 Replies
Can we see your image css? Also would be very helpful to put this in a codepen: #how-to-ask-good-questions
Sorry about that https://codepen.io/Bruno-Mota-Mota77/pen/PovNdOo
Two issues I can spot that cause overflow, without the image. The word "accompangnement" will not break unless you use word-break, or simply make it smaller to fit mobile screen widths. (good case for clamp() heading maybe, I do see you change it but not soon enough)
Other is your 12 col grid gap is adding up to lots of space @ 4 rem.
I honestly don't even see what benifit you get from the gap or 12 col grid but yea.
that is all gap... 1fr's are reduced to nothing
Tanks a lot i will try it