Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
Styling the SVG posed a problem as it had a fixed aspect ratio. I added the preserveAspectRatio="none" property to allow the width and height to be adjusted independently. Then I used the 'object-fit' property set to cover to appropriately crop the image to fit the container.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord