Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
-
Next time instead of writing style in the head. I will link the CSS style file in the head.
-
Furthermore, I'll try to use different method for placing the QR code box. For now, I have used flexbox but I want to try other methods such as using position property etc.
I made many newbie mistakes such as forgot to
- close the quotation mark
- set the height of the div element and had issues with image not showing up.
I overcame them using AI tools such as ChatGPT and Phind.
What specific areas of your project would you like help with?- Initially for setting the position of the container-card box I thought to set the width and height to auto.
- Later I realized that when set auto, the element get equal spacing from left and right but it can only be applied to width. It doesn't work on height.
- So is there any way to use this method (width: auto and some other properties) to align the box in the center of the body.
Community feedback
- @kodan96Posted 5 months ago
hi there! ๐
you can center your content with Flexbox if you apply these to the
body
tag:body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this was helpful ๐
Good luck and happy coding! ๐
2@grace-snowPosted 5 months ago@kodan96 yes but make sure you also set the flex direction to column!
1
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