@Bishalsnghd07
Posted
Hi, Rahul👋
Congrats for completing this challenge 🎉 and you did great job 👏
No, using absolute will be wrong approach, I review your code, the mistake you did is your necessary elements which are should be used in body(parent) div, but you used in child div. To center the container you should be used this property in parent container => body{ display: flex; justify-content: center; align-items: center; flex-direction: column; margin: 4rem; **min-height: 100vh**;(add this to maintain your screen actual size) }
Hope, this small tip will help you to center your container.
If, still have issue then feel free to ping me here ☺️
Happy Coding❤️
Marked as helpful