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 with CSS Flex

P
Cuong Ly 180

@cuonglyy

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

Hassia Issah 50,670

@Hassiai

Posted

The <div class="attribution"> should be out of the main tag and replace it with the footer tag. Add the alt attribute alt = " " to the img to fix the accessibility and error issue.

To center .card on the page, add display: flex; align-items: center: justify-content: center; or display: grid place-items: center to the body.

Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units Click here

Give .card a fixed max-width value instead on a percentage value. e.g: max-width: 300px. you won' require a media query for this challenge if the max-width is given a fixed value.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

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