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

li__minβ€’ 230

@shwetanegi30

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas πŸ‘Ύβ€’ 104,560

@correlucas

Posted

πŸ‘ΎHello @shwetanegi30, congratulations for your first solution and 😎 welcome to the Frontend Mentor Coding Community!

Your solution is great but is not responsive yet, this is due the image that has a fixed width, note that you need to replace width: 240px with max-width: 100% to make the image grow 100% of the container.

.qr {
    max-width: 100%;
    /* width: 250px; */
    border-radius: 5%;
    margin-top: 25px;
    display: block;
}

To make your image fully responsive add display: blockand max-width: 100% and object-fit: cover to make the image auto-crop when resizing inside the column:

img {
    display: block;
    object-fit: cover;
    max-width: 100%;
}

πŸ‘‹ I hope this helps you and happy coding!

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