r/csshelp • • May 25 '23

Flex-Section not centered

Hi everybody,

I hope someone can help me, because I am struggeling a lot with this.
I have a section in the header on a website with 3 columns. The "Kontakt" and "Menu" should be centered vertically and it just doesn't work.

I now have the following properties on the section:
display: flex;
align-items: center;
justify-content: center;
height: 100%

Can someone help me?
Here is the link: https://new.elsenalpstube.at/

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/ReasonableBanana8280 May 25 '23

Thanks a lot for that tipp! I set everything to 0 now and on desktop it looks just fine. But if i slowly decrease the width of the site, the right module "jumps" a little bit down at some point. What am I missing?