Cornerstone / X-Theme / align center horizontal and vertical

Hi there,

is it possible to do the content on the hole website at middle, horizontal and vertical?

https://www.markvolz.de/lp-lrpresets1-pre/

Thank you and best regards,
Mark


Hi Mark,

Thanks for reaching out. Yes, it’s doable, please add this CSS to your page builder’s CSS.

.x-root .site, .x-root .x-site {
    height: 100vh;
    align-items: center;
    justify-content: center;
    display: flex;
}
.x-main.full {
    width: 100% !important;
}

You can also check this https://theme.co/apex/forum/t/using-flexbox/24851 as a reference for flex styling.

Thanks!

1 Like

Thank you again!
You are great - i love it.

Best regards,
Mark

You’re most welcome Mark!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.