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

CSS flexbox and HTML for mobile and desktop

Colombe G 10

@colombeg

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 only used basic HTML and CSS in order to realize this project but I will use diverse libraries or methodologies for future projects.

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

I used media queries for the mobile format of the challenge.

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

I would like to have a better understanding on how I can improve my code and how I can create responsive projects or apps.

Community feedback

@ShoaibShuja

Posted

Amazing job my friend, the code looks good and clean but the .container doesn't seem to be perfectly centered like what the design asked for. You can achieve it by removing the margin-top property from .container and copying these lines of code to your CSS file:

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

And also, don't forget to use font-family to make text look better or according to design.

Have a nice day. 👍

0
Aris. 60

@idatenkiddy

Posted

You can use the position absolute method to center the component, position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); and also review the margins and padding of image and texts inside the component. you can increase the border radius to match the original design.

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