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 Challenge

Arzu Akhund Zadaโ€ข 260

@Arzu475

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


This is my first challenge in frontend developer,your suggestions will mean a lot to me.

Community feedback

Hassia Issahโ€ข 50,830

@Hassiai

Posted

wrap <div class="attribution"> in the footer tag and replace <h2> with <h1> to fix the accessibility issues

There is no need to give the body a width value.

To center .container on tthe page using flexbox or grid instead of a margin, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.

To center .container on the page using flexbox:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
To center .container on the page using grid:
body{
min-height: 100vh;
display: grid;
place-items: center;
}

Increase the padding value in the .container padding: 1rem Give the img a max-width of 100% for a responsive image and border-radius, the rest are not needed.

Give h1 and p the same font-size of 15px, text-align: center,the same margin-left, margin-right and margin-top values. Give p a margin bottom value.

Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

0

@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.

HTML ๐Ÿท๏ธ:

  • Use the <footer> tag to wrap the footer of the page instead of the <div class="attribution">. The <footer> element contains information about the author of the page, the copyright, and other legal information.

CSS ๐ŸŽจ:

  • Instead of using pixels in font-size, use relative units like em or rem. The font-size in absolute units like pixels does not scale with the user's browser settings. Resource ๐Ÿ“˜.
  • The width: 100% property in the body tag is not necessary. The body tag is a block element and it will take the full width of the page by default.

I hope you find it useful! ๐Ÿ˜„

Happy coding!

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