On my group’s Website, the Text Seems to not be Centered and i’m unsure how to fix it.
Hello, I assume you mean vertically because it’s already aligned horizontally. Have you tried this in the CSS?
position: relative;
top: -50%;
transform: translateY(50%);
Or you could make a div the size of the screen & make it flex, then center the items using align-items and put the content in another div.
3 Likes
Yes — that or you could add some padding / margin, but I do believe flexbox is still a better solution. I’m still in the process of learning CSS so I could be a bit incorrect.
This topic was automatically closed after 7 days. New replies are no longer allowed.