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

responsive design, media queries, html, CSS.

@CelineJames

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?

The hosting part gave me a hard time but i'm glad that i scaled through.

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

hosting the project. i had to rewatch some youtube tutorials and kept trying

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

nothing specific

Community feedback

Daniel πŸ›Έβ€’ 44,230

@danielmrz-dev

Posted

Hey there! πŸ™‹πŸ½β€β™‚οΈ

Congrats on completing the challenge! βœ…

Your project looks fantastic!

Here's a tip to make it even better:

Using margin and/or padding isn't always the best way to center an element. Try this method to center an element vertically and horizontally:

πŸ“Œ Apply this CSS to the body (skip position or margins to make it work correctly):

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

Hope this helps!

Keep up the great work!

Marked as helpful

1

@CelineJames

Posted

Hey @danielmrz-dev, thanks for the review and encouragement. I had done the above code in my css @body, but it still won’t center vertically, it only centers horizontally. However I noticed you included something different. Which is setting the min-height property, I would try that and see if that works.

1
Daniel πŸ›Έβ€’ 44,230

@danielmrz-dev

Posted

@Kaytorah That property is the most important because this method centers the element vertically based on the user's screen height.

Marked as helpful

1

@CelineJames

Posted

@danielmrz-dev , Thank you for the suggestion, it worked. I tried it on the second project and it came out closely identical, say 98/100. Thanks a lot. And I’ve gone ahead to study Min and Max width and height values properly.

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