Site logo

Archived topic

display: grid; on the body

3 replies · Started by cpalo on January 18, 2022

Viewing posts 1–4 of 4

How apply a css-grid context on the body without causing the theme to malfunction?

body {
    min-height: 100vh;
    display: grid;
}

Hi there

I wouldn't recommend doing that as the whole theme is currently set up to use flexbox.

If it's absolutely for whatever you are trying to do then I'd say you will need to take the trial and error approach.

Hope this helps.

Yes I took into account that generatepress uses Flexbox.
On my other sites I use css-grid.
And with this code it allowed me to have a sticky footer to bottom when the content is collapsed.

Sounds good.

This archived topic is closed to new replies.