Not Found
Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
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 card ,styled with CSS .

@SlavenaDuhneva

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


The difficult part was to scale the image and made it to be responsive to mobile and desktop devices.

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hello, SlavenaDuhneva! 👋

Make the <img> as a block element and set max-width: 100%. It makes the image elements responsive (not overflowing).

Alternative text of the image should be used to describe the image. In this case, it is a QR code that will navigate the users to https://www.frontendmentor.io/. So, the alternative text should have that information.

Never use px unit for font sizes. Use rem or em instead. Relative units such as rem and em can adapt when the users change the browser's font size setting.

Resources about alternative text:

I hope this helps. Happy coding! 😄

Marked as helpful

0

@SlavenaDuhneva

Posted

@vanzasetia Thank you so much for your advice about the <img> tag !

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