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

Mobile responsive solution using CSS and flex-box

Igashi Michaelโ€ข 130

@Mikkybeardless

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


so I did a single page that was mobile responsive but started with the desktop version. I realize that when resizing the page before we get to mobile pixel, the width becomes unusual.

is it supposed to be so or is there supposed to be a style for laptop and tablet widths?

Community feedback

@MelvinAguilar

Posted

Hello ๐Ÿ‘‹. Congratulation on successfully completing your first challenge ๐ŸŽ‰ ! !

I have some recommendations regarding your code that I believe will be of great interest to you.

  • Avoid using percentage or viewport units for component width, as it may lead to issues on mobile and large screens. Instead, use a max-width of 320px or 20rem to ensure a consistent maximum width, and remove any percentage-based width properties.
  • Use semantic elements such as <main> and <footer> to improve accessibility and organization of your page.
  • It's recommended that you always use the font provided by the challenge's style guide.To import a font, follow the steps below:

    • Go to the font's page on Google Fonts: https://fonts.google.com/specimen/Outfit.
    • A sidebar will appear with a code snippet that you can use to import the font.
    • Copy this code snippet and paste it into the <head> section of your HTML document.
    • Now you can use the "Outfit" font in your CSS by specifying font-family: 'Outfit', sans-serif;.

I hope you find it useful! ๐Ÿ˜„ Above all, the solution you submitted is great!

Happy coding!

Marked as helpful

3

Igashi Michaelโ€ข 130

@Mikkybeardless

Posted

@MelvinAguilar thank you so much.. I actually know that something is wrong from the way my page responded to tablet and laptop view but didn't know what exactly to use to solve it

Thanks to you, I know now

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