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-code component with CSS Flexbox.

@Atharane

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


Adjusting the width of the card to be mobile responsive, ended up using fixed width :(

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

Replace < div class="container"> with the main tag and<h2> with <h1> to fix the accessibility issues.

To center a content on a page, add min-height:100vh; to .container and remove the height value

give #qr-code width:100% or max-width:100% instead of giving it a specific width and height values.

Use rem or em as unit for the padding , margin, width and preferably rem for the font-size for more on this watch this https://youtu.be/N5wpD9Ov_To

Hope am helpful Happy Coding

Marked as helpful

1

@Atharane

Posted

@Hassiai thanks for the suggestions I'll surely incorporate those changes 😃

0

@Atharane

Posted

@Hassiai Does this look good now? https://github.com/Atharane/qr-code-component.io

0
Hassia Issah 50,670

@Hassiai

Posted

@Atharane , replace <div class="attribution"> with the footer tag , sorry I forgot to mention this. everything is good. Well done and congrats

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