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, CSS, HTML

Benโ€ข 160

@blue-crona

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


Hello, this is my attempt at the QR code component challenge.

I'd appreciate any feedback or suggestions that you might have regarding this solution. ๐Ÿ˜Š

Community feedback

@MelvinAguilar

Posted

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

I like this solution for the challenge. Here are a few suggestions I've made that you can consider in the future if you're looking to improve the solution further:

  • You need just 2 more properties to center with flexbox

Using flexbox layout:

body {
   width: 100%;
   min-height: 100vh;
   display: flex;

   justify-content: center;
   align-items: center;
}

Another option is to use grid layout:

body {
   width: 100%;
   min-height: 100vh;
   display: grid;
   place-content: center;
}

Links with more information:

.

Here are some other suggestions:

  • Use margin: 0.625rem or margin: 10px in the content-container selector so that it has some space when viewed on mobile devices.

I hope those tips will help you.

Good job, and happy coding!

Marked as helpful

3

Benโ€ข 160

@blue-crona

Posted

Hi @MelvinAguilar, Thank you for the awesome feedback.

I've implemented your suggestions of positioning the content using flexbox and adding some space on mobile devices. ๐Ÿ‘

0
Hassan Mouradโ€ข 50

@Mourad3rd

Posted

Github this is how I did it you did a better than me over all great job ๐Ÿ˜Šโค

0

Benโ€ข 160

@blue-crona

Posted

@Mourad3rd โค๏ธThank you!

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