Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
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

kalmod 20

@kalmod

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


  • Box-shadow, font-size, and setting the right flex properties on the children.
  • What are usually the best approaches to take when approximating the size of content?

Community feedback

Yash Joshi 450

@yashgjoshi20

Posted

Hey well done for completed this challenge😁

I have some suggestions to help you to improve your solution :

  1. You should put the <div class="attribution"> outside the <main> tag
  2. then replace the <div> tag by semantic tag <footer>
  3. footer can contain informations about author, copyright etc

HTML :

<main>
</main>

<footer class="attribution">
</footer>

I also make pull requests on your Github repo so you can merge it if the changes suit you

I hope you'll find this helpful, and your solutions is really good 😁

Marked as helpful

1
Ankit 40

@fabledankit

Posted

I looked at the font size provided for the paragraph, and look at how it was wrapped in the container. Now resize the container until it wraps the way it did in the design. That's how I did it. Hope it helps 👍

1
Bader Idris 2,900

@Bader-Idris

Posted

You can set the container in the middle of the screen whatever user changes it when you add these properties to it in CSS:

.container {
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

the new feature is transform, it has many lovely properties you can discover, I personally love it. Hope it's useful

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