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

akarivari-patch-1

akarivariโ€ข 10

@akarivari

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


Feedback? I apreciate!

Community feedback

@MelvinAguilar

Posted

Hello there ๐Ÿ‘‹. Good job on completing the challenge !

I have some suggestions about your code that might interest you.

CSS ๐ŸŽจ:

  • You have used Flexbox correctly, but the only thing missing is setting a height for your 'body' element to vertically center the content. Without a defined height, it doesn't have a reference point for vertical centering.
  • You should avoid using position: absolute on all elements to position them, as position: absolute can make your layout more complex and potentially cause difficulties when positioning elements.

    The possible confusion might have arisen from using display: flex on your <div class="bloco"> and seeing the elements align horizontally. If you want to change the alignment using Flexbox, you can simply use flex-direction to control the direction of the layout.

    The possible values for flex-direction include:

    • row (default): This value arranges the items in a horizontal line, from left to right --- .
    • column: this value arranges the items in a vertical column, from top to bottom |.

CSS Reset ๐Ÿ”„:

  • You should use a CSS reset. A CSS reset is a set of CSS rules that are applied to a webpage in order to remove the default styling of different browsers.

    CSS resets that are widely used:

I hope you find it useful! ๐Ÿ˜„

Happy coding!

1
P
Wojtekโ€ข 190

@Wojtek-A

Posted

Hi, in my opinion you should work a little on the sizes and the font is not the same. Take a look on your "DESIGN COMPARISON".

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