Manuel Gil• 340
@ManuGil22
Posted
Hey @AbhishekBh72
To position a element in the exact center of a page you can use this attributes on the body element:
- height: 100vh; //To make the height of the body 100 viewheight units
- display: flex; //To use flexbox
- justify-content: center; //To center elements horizontally
- align-items: center; //To make all items center in the page vertically
I hope I answered your question! Keep pushing and happy coding!
Marked as helpful
1
@ManuGil22 Thankyou so much for your suggestions. I just implemented the changes suggested by you and it's working properly.
0
Manuel Gil• 340
@ManuGil22
Posted
@AbhishekBh72 Thats great! :D
0