Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

QR code component card

Oreoluwa Samuel Akinbo•100
@KingHorey
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


  1. I had issues with the margins and size of the divs. However, I used my discretion in creating one with the dimensions I felt were right

  2. When using the inspect tool in chrome and resizing the webpage, the paragraph element just out of the div and I do not know how to resolve that.

Here's the link to the image code below:

HTML code

   <div class="text">
      <h1>Improve your front-end skills by building projects</h1>
      <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
    </div>

CSS code

h1 {
    font-family: "Outfit";
    font-size: 17px;
    font-weight: 700;
    color: hsl(218, 44%, 22%);
}

.text {
    width: 80%;
    margin: 0 auto;
    height: auto;
    position: relative;
    bottom: 5;
    top: 4%;
    word-wrap: break-word;
}

p {
    height: inherit;
    font-family: "Outfit";
    font-size: 15px;
    color: hsl(220, 15%, 55%);
    font-weight: 500;
}

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Oreoluwa Samuel Akinbo's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License