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

margin and border-radius

Metin AKINβ€’ 120

@Rheomacrodex

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


First of all margins is difficult for me

Community feedback

@MelvinAguilar

Posted

Hi @Rheomacrodex πŸ‘‹, good job completing this challenge, and welcome to the Frontend Mentor Community! πŸŽ‰

Here are some suggestions you might consider to improve your code:

  • Your solution should contain a title tag with the name of the challenge and an icon.
<title>Frontend Mentor | QR code component</title>
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png" />

With semantic tags:

<body>
   <main class="main-container">
      . . .
   </main>
<body>
  • Instead of using pixels in font size, use relative units of measure like rem or em. The font size in absolute length units (px) does not allow users with limited vision to change the text size in some browsers. Reference.
  • The container isn't centered correctly. You can use flexbox to center elements:
body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

Links with more information:

I hope those tips will help you.

Good job, and happy coding!

2

@VCarames

Posted

Hey there! πŸ‘‹ Here are some suggestions to help improve your code:

  • To help identify the main content of you site you will want to encase your entire component inside a Main Element.

  • The Alt Tag description for the QR image needs to be improved upon. Its needs to tell screen reader users what it is and where it will take them to when they scan it.

  • Change width to max-width in your component’s container to make it responsive.

  • Change width to max-width: 100% in your image to make it responsive. You will also want to remove the height as it is unnecessary.

If you have any questions or need further clarification, let me know.

Happy Coding! πŸ‘»πŸŽƒ

0
Fahad Nawazβ€’ 20

@Fahadnawaz007

Posted

Good effort brother. Keep it up you're doing great.

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