Design comparison
Solution retrospective
a
What challenges did you encounter, and how did you overcome them?a
What specific areas of your project would you like help with?I am new and I welcome any exercise that challenges me.
Community feedback
- @ChrisGMD20Posted 5 months ago
You could center the QR card by using the absolute positioning and then fixing the top and left properties. something like:
#qr-card { position: absolute; //so the card could be placed relative to the parent element, i.e., in this case the html page
top: 50%; //so the card is shifted to half the page vertically from the top left:50%; //so the card is shifted to half the page horizontally from the left
transform: translate(-50%, -50%)
//so the card is shifted left and up half of its width and height for optimal centering }0 - @Annas-khanPosted 6 months ago
Great work, although I feel it would be better to have used multiple divs for multiple elements rather than having them all under one div tag
0@Zaraban6Posted 6 months ago@Annas-khan You are right, but in the project. This is a small exercise and different tastes. Thank you for commenting
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