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

All comments

  • @Galvez121

    Submitted

    Could anyone help me? I tried to center the div in the middle of the website using flex-box justify-content, but It did not work out. I did it using margin instead.

    Any bad practice in HTML or CSS? Any changes that would make my code cleaner?

    Thank you ^^

    FFerDev 30

    @FFerDev

    Posted

    Greetings ♥. The issue with trying to vertically center the component arises from not giving it a "defined" height. By default, the height will adjust to the height of its contents, meaning it will only occupy the necessary height, rendering the attempt to vertically center it futile. The solution would be to provide a height to the parent element of the element you want to center, for example, a min-height: 100vh. This way, it will have the space needed to be vertically centered.

    Marked as helpful

    1
  • FFerDev 30

    @FFerDev

    Posted

    When you uploaded the files to GitHub you did not upload the QR image. The component looks incomplete.

    0