the right way to do responsive
i have these a bunch of them like it
and i'm doing responsive where they look like this , the issue is i wanna retrieve the width of the img's and give it to property width for button selector
here's the link

3 Replies
i changed the structure a bit and used grid-template-columns autofit for the responsiveness
https://codepen.io/MarkBoots/pen/jOdxoQN
@GrapDes Should I keep this pen active or can I remove it again like last time?
If you post a question, it would be nice if you also respond to answers. We're putting our free time and effort in helping others, but it feels a bit of a waste if you keep quiet for several days.
removed the pen. here a backup incase you still need it