@krrish105
Posted
Hi, your solution looks good. Few suggestions:
- Your card is not properly aligned to the center of the page and also the button is not properly aligned. You can center the card by adding
display: flex; justify-content: center; align-items: center; min-height: 100vh;
to the body. In this, justify-content will align the content to the center of the main axis and align-items will align the content to the center of the cross-axis (perpendicular to the main axis). Also, remove the margin from the card and footer for this to properly work, and for the button alignment you can useposition absolute; left: 50%; transform: translate(-50%);
and addposition-relative
to the wrapper class. I think you need to learn more about the position and centering the div. Hope this freecodecamp article will help you: here - Your HTML code also contains more than one meta tag for charset.
For deploying the react app on Github, I mostly follow this article.
Marked as helpful
@Ambrolla
Posted
@krrish105 Thank you! This helped me! I was a bit stuck on the css/html part.