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

border-radius,margin,overflow,@media,display

Zaraban6 70

@Zaraban6

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


What are you most proud of, and what would you do differently next time?

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

@ChrisGMD20

Posted

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-khan 120

@Annas-khan

Posted

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

Zaraban6 70

@Zaraban6

Posted

@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 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