Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
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

Responsive QR Code Component using Flexbox

Regina Cachoaβ€’ 30

@reginacachoa

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


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;?

Community feedback

visualdennisβ€’ 8,255

@visualdenniss

Posted

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

0

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