@Opeoluwa-Ogunlaja
Posted
Hi!
I think the best way to center a single element on the page is by giving the body
;
display: grid (i think flex can also work here)
place-items:center;
and making the height and width of the body full as well (asin 100vh
and 100vw
). After that, no more worrying about centering so you can just use percentages like you did.
@SeNaTu24
Posted
@Opeoluwa-Ogunlaja Thanks. I will put that into practice
@Opeoluwa-Ogunlaja
Posted
@SeNaTu24 👍👍