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 component coding using CSS HTML and a bit of SASS

@CEE-AI

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


Redone as suggested, Thank you @denielden and @enggsuraj. I can even get better... more suggestions are appreciated, thanks again.

Community feedback

Travolgi šŸ•ā€¢ 31,420

@denielden

Posted

Hi Chijioke, great work on this challenge! šŸ˜‰

Here are a few tips for improve your code:

  • add main tag and wrap the card for improve the Accessibility
  • remove all margin from body
  • after, add min-height: 100vh to body because Flexbox aligns child items to the size of the parent container
  • instead of using px use relative units of measurement like rem -> read here

Overall you did well šŸ˜ Hope this help!

Marked as helpful

0

@CEE-AI

Posted

@denielden Deniel Den, Thanks for the corrections and suggestions, I find them super helpful, thank you. Please can you further expatiate on the first suggestion: add main tag and wrap the card to improve accessibility? thank you.

1
Travolgi šŸ•ā€¢ 31,420

@denielden

Posted

@CEE-AI You are welcome! Sure, Read here. Wrap card like this:

<body>
   <main>
        <div class="card">
             .... card content
        </card>
   </main>
</body>
0

@CEE-AI

Posted

@denielden Thank you, super helpful

1
suraj gehlotā€¢ 180

@enggsuraj

Posted

Instead of adding margin-top:100px in body

Add

body { background: hsl(212, 45%, 89%); display: flex; /* margin-top: 100px; */ justify-content: center; align-items: center; height: 100vh; }

To perfectly center the container šŸ˜Š

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