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 component design solution

@priya209

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 challenges did you encounter, and how did you overcome them?

As beginner, I got problem in making the design responsive to mobile screen.

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

I want feedback on responsiveness of design.

Community feedback

@krushnasinnarkar

Posted

Hi @priya209,

Congratulations on successfully completing the challenge!

Your solution looks nice, though I have a suggestion that I hope will be helpful!

Suggestion: Using max-width Instead of Media Queries for Width

Instead of using media queries to set the width like this:

@media (min-width: 500px) {
    .container {
        width: 400px;
    }
}

You can directly use the max-width property on the .container. This will ensure that the component's maximum width is 400px on any screen size and reduce the width for screens smaller than 400px.

Here's how you can do it:

.container {
    max-width: 400px;
    width: 100%; /* Ensures it takes full width of the parent for smaller screens */
}

By using max-width, the container will adapt more gracefully to different screen sizes, eliminating the need for multiple media queries for width adjustments.

I hope you find this helpful, and I would greatly appreciate it if you could mark my comment as helpful if it was.

Feel free to reach out if you have more questions or need further assistance.

Happy coding!

Marked as helpful

0

@priya209

Posted

Hi @krushnasinnarkar,

Thank you so much for taking the time to review my code and provide feedback on my first task on FrontendMentor.io. Your suggestions are valuable in helping me address the issues. I implemented your advice, and it significantly improved the overall look and functionality of the site.

I really appreciate your insights and guidance.

0

@krushnasinnarkar

Posted

@priya209

I would greatly appreciate it if you could mark my comment as helpful if it was.

Feel free to reach out if you have more questions or need further assistance.

Happy coding!

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