Phurin Nararat• 50
@phurin-git
Posted
May be you should set height of the <body> container first. Set it to "100vh" and align it to center
body {
display: flex;
width: 100vw;
height: 100vh;
justify-content: center;
align-items: center;
;
}
0
What challenges did you encounter, and how did you overcome them?
My challenge was place an image and text on the same line.
What specific areas of your project would you like help with?
If there is any where i need to improve on kindly pls help me to point it out.Thanks
@phurin-git
Posted
May be you should set height of the <body> container first. Set it to "100vh" and align it to center
body {
display: flex;
width: 100vw;
height: 100vh;
justify-content: center;
align-items: center;
;
}
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord