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

@Eman-Abdallah

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,420

@correlucas

Posted

๐Ÿ‘พHero Eman, congratulations for your solution!

You card component is almost perfect, you need only to fix some issues related to the responsivity. Note that you don't need to use media queries in this challenges, to solve everything all you need to do is to have your card responsive. See the fixes I've done to your code below:

First I've removed all media queries and than I've applied these fixes:

@media (max-width: 400px)
.card {
    /* width: 250px; */
}

.card {
    margin: 150px auto;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card img {
    display: block;
    max-width: 100%;
    border-radius: 10px;
}

Hope it helps and happy coding Eman!

Marked as helpful

0

@Eman-Abdallah

Posted

@correlucas thanks it was very helpful

0
Eyoel Melesโ€ข 70

@eyoelmeles

Posted

The color of the title is a bit more darker on your solution.

Marked as helpful

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