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

QR code component using HTML and CSS

Reginaβ€’ 90

@regina-cht

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


Hi, this project is build with basic code html css only, but I will really appreciate any suggestions if i can make it better

Community feedback

Ferβ€’ 3,970

@fernandolapaz

Posted

Hi πŸ‘‹, just a couple of things that may interest you:

  • In case you want to reduce the code, these two declarations don't seem to be necessary:
.box {
position: relative;
margin: 9rem auto;
}
  • And if you want to prevent attribution from overlapping the card in low-height viewports (like landscape mode on mobile), you can position it to the bottom only after a certain height:
@media screen and (min-height: 40rem) {
.attribution {
position: absolute;
bottom: 15px;
font-size: 11px;
text-align: center;
}

I hope it’s useful : )

Regards,

Marked as helpful

1

Reginaβ€’ 90

@regina-cht

Posted

@fernandolapaz Thank u so much, I was actually wondering how to fix the overlapping but after a few tries I got tired so I just gave up. I deeply appreciate your help, I'll try your suggestions asap :)

1

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