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 QR scanner card

@parvezalam19

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


i am beginner .so i am facing problems in positioning of divs.

Community feedback

Damian 150

@damiandev22

Posted

congrats on your attempt.

To fix the ACCESSIBILITY ISSUES you should

  • wrap the main content inside the "main" tag
  • wrap the atribution content inside the "footer" tag
  • use an "h1" in the page. The h5 you are using could be an h1 and be centered (text-align: center;) to achieve a result more similar to the design.
0

@AdrielMurray

Posted

Great job @parvezalam19 on your first attempt. If you want to center .card-title. You should try text-align: center.

0

@parvezalam19

Posted

@AdrielMurray i did it but didn't work

0
Hyron 5,870

@hyrongennike

Posted

Hi @parvezalam19,

Good job on your first attempt

If you want to center something vertically and horizontally on the page do the following on the parent element.

.container.mx-auto {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

also remove the margin by adding this

.card.mx-auto.card-1{
    margin: 0;
}```

and then just check the report and fix the accessibility issue. Hope this is 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