HTML & CSS QR Code w/ Flexbox

Solution retrospective
Managing to get something similar to the given component.
What challenges did you encounter, and how did you overcome them?Wasn't quite sure how to scale the width and height of the card component. I initially used the width of the viewport, but later realised that it scaled really weirdly, so I just used a fixed width. Eager to learn more about how to make a responsive page design.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@mkerr-github
Looks good, great effort, well done!
The next challenge on the learning path helps to learn about how to make such a card more responsive, and they show two layouts, desktop and mobile.
https://www.frontendmentor.io/challenges/blog-preview-card-ckPaj01IcS
Basically, you can use media queries, where you can specify in the CSS that certain properties and sizes should change once the pixel size of the screen reaches a certain size. Watch a few short tutorials on CSS and media queries.
Here is a nice short explanation as well on W3 schools:
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
If you found any of this useful, please remember to "mark as helpful" , thank you!
Keep up the good work, and keep going ! 👋
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