this was a nice challenge however positioning got in the way. whats a good way to center vertically? i want the two overlapping and i used px to get it but it leads to when on mobile it being on the bottom
Joylin-Pinto
@Joylin-PintoAll comments
- @NefariousApeSubmitted over 1 year ago@Joylin-PintoPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
I have other recommendations regarding your code that I believe will be of interest to you. CSS : Looks like the component has not been centered properly. So let me explain, How you can easily center the component without using margin or padding.
To properly center the component in the page, you should use Flexbox or Grid layout.
body { min-height: 100vh; display: grid; place-items: center; }
This will make the components within the body center itself properly. I hope you find this helpful.
The solution you submitted is great ! Happy coding!0