How to keep text and image div at the same height on different screen sizes?

How to keep text and image div at the same height on different screen sizes?

saidakl
Shopify Partner
1 0 0

In my section I have a div with an image and I have a div of text next to each other. What I need to do is make sure that the text isn't bigger in height than the image.

 

Also it should stay nice and compact together. But when I check on bigger screens, or even smaller, they start to move around and aren't staying at the same height.

 

saidakl_0-1665066132898.png

Its somewhat supposed to stay like that, the button needs to be higher as well though.

 

But when I switch dimensions of my screen, it starts looking like this:

saidakl_1-1665066238309.png

 

Thanks in advance.

Replies 0 (0)