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 solution, i used html5 and css.

P

@rough-diamond213

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


What are you most proud of, and what would you do differently next time?

Been able to use the media query for the responsiveness of the webpage

What challenges did you encounter, and how did you overcome them?

it was not so much of a challenge but pushing my work to github and using github pages for my site to go live but thanks to the resources provided, it made the journey easy and i was able to accomplish the task.

What specific areas of your project would you like help with?

I had a little challenge when trying to center the qr-code so that it will be in the middle but if you look carefully the bottom is a little longer than the top, I tried using the margin though I didn't get the exact result I wanted but it was close to something perfect.

Community feedback

P
Ortaly 970

@ortalyarts

Posted

Hallo @rough-diamond213!

Congratulations on completing the challenge!

To place the div.container perfectly in the middle (independent from the width/height of the device) I would use following:

  1. Set the body element to min-height: 100vh; display: flex;
  2. Set the div.container to margin:auto;

I would also recommend you to use padding for the .container instead of margins for the image.

I hope you find this helpful! Cheers :)

Marked as helpful

0

P

@rough-diamond213

Posted

Hello @ortalyarts

Thank you for your insightful contribution. it was helpful

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