Skip to main content
Angela Liu
New Participant
Sep 30, 2025 6:29 PM UTC
Question

Maintaining size/padding of one element when another is adjusted

I’ve created components for an image, badge, and icon. I want to the image size to be adjustable, without it affecting the size or position of the badge/icon. Right now, if I change the image size, the badge/icon get bigger and their positioning is adjusted (eg. 16px away from corner becomes 20px). How could I stop this from happening?

This topic has been closed for replies.