Submitted over 2 years agoA solution to the QR code component challenge
QR code component card
@KingHorey

Solution retrospective
-
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
-
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 GitHubCommunity 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