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 with basic styling

Ibukun Ekunweβ€’ 100

@drvnprgrmr

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


I would like to know the best practice for centering block level elements vertically.

element {
   margin: auto;
}

doesn't seem to work.

Community feedback

Abdulβ€’ 8,560

@Samadeen

Posted

Hey!! Cheers πŸ₯‚ on completing this challenge.. .

Lets firstly work on your accessibility issues.

  • Page should contain a level-one heading basically means your html should have a h1 it aid navigation hence <h3>Improve your front-end skills by building projects</h3> should be <h1>Improve your front-end skills by building projects</h1> and you should also go down orderly when you are using the headings h1 down to h2 down to h3 and so on.

  • You can use flexbox or grid to center your element horizontally and vertically.. set display: flex; align-item: center; justify-content: center;

. Regardless you did amazing... hope you find this helpful... Happy coding!!!

NAIJA TO THE WORLD!!!

Marked as helpful

1

Ibukun Ekunweβ€’ 100

@drvnprgrmr

Posted

@Samadeen I tried using flex but it didn't work.

Also, If I used h1 instead of the <h3>, does that mean I would have to change the font-size to make it look more like the design?

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