r/csshelp • u/ReasonableBanana8280 • 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
View all comments
Show parent comment
1
u/tridd3r May 25 '23
it looks like divi just being an idiot and addint ing random margins because fuck you that's why!
But have a look at the module, and see if you can explicitly set the bottom margin to 0, or, at the very least, you can go into the custom css and add it in yourself. maybe add !important at the end .