Trying to get grid to scale with text

I’ve got some text that I’ve set to scale as the screen changes size. I have the containers for the text set on a grid with a gap to make sure they stay a certain distance apart from each other, but when I change the screen size the grid doesn’t scale with the text. Is there any way to tell the grid to snap to the text or something so it scales with the text?

small screen size (where I want the grid to be):

larger screen size (where the grid doesn’t move as the text enlarges):

Hi @susanvandenhende ! Have you tried setting the grid rows’s height to ‘max-content’? This way what will determine the height of the row is the content inside it which is your text element.

I haven’t, probably because I haven’t seen that setting as I’ve been poking around. I’m very new to Wix and don’t exactly know what I’m doing.

Gave it a go, and it is scaling now! But the problem now is that there’s extra room in the text frame around the text, so even after removing the gaps my spacing is all wonky. I know I can set margins in negative pixels, so I think I can fiddle with it until it works.

Thank you so much!

You’re very welcome! If I am understanding correctly, if you would like to minimize the space above and below the text inside the text element, try playing with the line spacing of the text element by selecting the text element, clicking on the “Design” tab in the Inspector Panel on the right and if you scroll down to the bottom you will find the “spacing” property. I hope this helps and welcome to Wix! It’s a wonderful platform :slight_smile: