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

@Gilbert-Koom

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?

I am happy about the fact that i could do the project all by myself but i will like to be good at responsive design.

What challenges did you encounter, and how did you overcome them?

It was hard for me to center the text below the image of the qr code but i googled and found a solution on stack overflow.

What specific areas of your project would you like help with?

I would like to be good at responsive design

Community feedback

Ashong 930

@AshongAbdallah06

Posted

Remove the height from the component class and the h1 class Remove all the padding from the h1 class and add this styles to center the element

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0;

Now you can play around with changing the font sizes to get the one closer to the design

Marked as helpful

0

@Gilbert-Koom

Posted

Should i apply the styles to the class component or the h1 element

0
Ashong 930

@AshongAbdallah06

Posted

To the class component @Gilbert-Koom

1

@Gilbert-Koom

Posted

Please I have tried but it doesn't work

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