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

HTML and CSS

P
Darius 50

@dariushill

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?

I'm most proud of being able to complete the challenge mostly by myself. I did need to research certain aspects of CSS that I had trouble with, but overall it was a great experience and feeling. I honestly don't know what I would have done differently next time.

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

The first challenge I encountered was how to center my QR card inside the container div. I had trouble figuring this out but found the answer using flexbox, a topic I'm very new to. The second challenge I encountered was importing the correct font. I found the answer using Stack Overflow.

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

None as of now

Community feedback

LaStellaa 90

@LaStellaa

Posted

Good job @dariushill! To position the content in the center of the page there are 2 very easy ways that you can write in the Main block (you need a main in your HTML):

Flexbox:

display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;

or GRID :

display: grid;
place-items: center;
min-height: 100vh;

Hope this helps, have a good one!

Marked as helpful

1

P
Darius 50

@dariushill

Posted

@LaStellaa Thanks for the feedback. I very new to flexbox and still trying to wrap my head around it. I haven't dabbled in CSS grid yet.

0
paulDev 440

@dev-paulL

Posted

Hi, good job for your first challenge 👏

This is good practice to avoid using px (especially for font-size) and also div. They could be <article> or <section>. Your page needs a <main> container as well. You can also include box-sizing: border-box; in your reset :)

Best, Paul

Marked as helpful

1

P
Darius 50

@dariushill

Posted

@dev-paulL thanks for the reply. I've update my HTML elements to semantic elements. I've also included the box-sizing: border-box;

0

@mdnaimur

Posted

The solution is made from HTML and CSS. No extra framework and tools are being used. This is raw code. It is the perfect solution. All necessary information is included.

This solution fulfills the requirement.

0

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