Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR Code Component

Tonyโ€ข 50

@Snorri967

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I found removing the whitespace from the main element originally to make the design look more or less identical to the preview, but messing with max-width percentages on the main and image element fixed that for me.

Community feedback

@MelvinAguilar

Posted

Hi @Snorri967 ๐Ÿ‘‹, good job for completing this challenge and welcome to the Frontend Mentor Community! ๐ŸŽ‰

Here are some suggestions you might consider:

  • Use min-height: 100vh to body selector, with this property you set a height and you let the element grow even more if necessary, and remove position: absolute; from the main element.
  • You can directly use max-width: 320px; in your main element and you would not need to implement a media query to modify the width.

I hope those tips will help you.

Good Job and happy coding !

Marked as helpful

1

Tonyโ€ข 50

@Snorri967

Posted

@MelvinAguilar Thanks for the feedback buddy!

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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