@md5dalton
Posted
Greetings Oviedev π
I did play around with CSS flex box and grid to place your content in the center of the page and both work perfectly fine. Below is a snippet of CSS I used and I commented out the properties that you should remove.
body {
display: grid;
place-content: center;
min-height: 100vh;
/* display: table; */
/* position: absolute; */
/* height: 100%; */
/* width: 100%; */
}
Regarding the background images, I'll leave below a starting point where you can also play around and see how you can place those images the way you want and I'll also comment out properties that are unnecessary :
body {
background-position: top left, 50vh bottom;
background-repeat: no-repeat;
/* background-size: auto, cover; */
}
Happy coding. π
Marked as helpful
@ovie-best
Posted
@md5dalton Thanks alot. I will try it out immediately
@ovie-best
Posted
Thanks once again @md5dalton
I just applied the code for vertical alignment of the content you suggested and it worked perfectly ππππ
For the background image, it displayed all by itself after adding the code for the vertical alignment. The only thing I did about the background image was the removal of the auto and cover values and that was it.
There's alot of power in CSS grids when it comes to layout.
@md5dalton
Posted
You're welcome @ovie-best ...
I'm glad that helped you. π