help with text in grid
https://codepen.io/etrbbr/pen/wBwgwrG
On the first page, it shrinks when you compress it vertically. How can I fix this? It's probably because the first photo is a bg-img.
The second question: In the grid with 8 photos, how can I fix the text like this?
Also, in the grid with 8 images, the text is fine on the first image, but for some reason, it's different on the others.
codepen just example
7 Replies
I don't quite understand all of what you're saying but I think they legitimally hardcoded line breaks for the grid
This gives you more of your desired effect
I also made a new class and put all the similar styles in it. No need to repeat yoruself
So actually the solution was to put <br>?..
I mean I'm assuming that's how they controlled it. There doesn't seem to be some magical max width
thanks bro
could you also maybe help me to figure out one thing.. When you change the resolution to a smaller one, the grid starts shifting upwards, affecting the top elements.
and i also used in every because my original project has 8 different imgs
but display:flex and etc it was unnecessary yeah
thanks
It's the height on the section tag. You have height 100vh. Change it to min-height 100vh