Responsive QR Code Component using Flexbox

Solution retrospective
Was this an efficient way to develop the desired design?
Was there an easier way to achieve this?
For the QR-Container, I used a display:flex;
with a flex-direction:column;
so that I could align-items:center;
and justify-content: center;
: Could it have been easier to instead use display: block;
?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @visualdenniss
Hey, great work!
For this challenge, I think you could achieve the same look with display block too. You could use text-align:center; and add some paddings and margins to heading and paragraph and voila. After all, many elements are block level elements by default, which is then similar to flex-direction column, but flex allows you some more control and responsiveness.
Additionally you can also add some box-shadow. Here are some great examples u can use: https://getcssscan.com/css-box-shadow-examples
Hope you find this feedback helpful!
Marked as helpful
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