I have a one pager HTML site. I am trying to center the content in the middle vertically (so that the image, the text below it and the two buttons are moving a little bit more down) on this website: https://werwichtelt.de
Asked
Active
Viewed 31 times
2 Answers
0
Add to your main
element
main {
display: flex;
align-items: center;
}

Tan Dat
- 2,888
- 1
- 17
- 39
-
It’s perfectly working on desktop. But now the main area is not completely shown on mobile, since it’s try to fit on one screen and overlapped by the footer. I just want the header, main area centered, bottom area. If it’s fitting on the screen, perfect, if not, scroll – user3532201 Feb 28 '20 at 04:29