Design comparison
Solution retrospective
had to separate the text in paragraphs because it was easier for me to centralize
Community feedback
- @TomasAlbertPosted 11 months ago
Hi congrats, for completing this challenge i saw you solution for centering text i think you make you life harder then it should be you can just use
<br>
tag which will brake line and usetext-align: center
property and you will get same result. So you can replace this code<div class="second-p"> <p>Scan the QR code to visit Frontend</p> <p>Mentor and take your coding skills to</p> <p>the next level</p> </div>
with this
<p style=" margin-top: 18px; text-align: center; color: #9a9aa0; font-size: 14px; ">Scan the QR code to visit Frontend <br> Mentor and take your coding skills <br> to next level</p>
Or you can just use padding for you p-tag.
0
Please log in to post a comment
Log in with GitHubJoin 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