@SindhujaBandaru
Posted
Hello @codercreative Congrats on completing your project.
-For body tag in CSS instead of using margin to center the body,use this instead
body{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
min-height:100vh;
}
If you need to put some content just in the middle of the page you have to set body to min-height: 100vh; and handle the overflow if needed. Hope this helps!
Marked as helpful