Site logo

Archived topic

Autofit Gradient Background height/width

3 replies · Started by Ryan on January 14, 2021

Viewing posts 1–4 of 4

Hi, how do I make my gradient background autofit height and width? I am using a container for the entire page right now with a background gradient within the container from generateblocks

Hi Ryan,

Try to set the GB container background color to transparent, then use this CSS add background to the body.

body.page-id-2595 {
    background: linear-gradient(180deg, #3a4fff 0%, #69d7de 100%);
    background-size: 100% 150%;
}
body.page-id-2595 #page {
    background-color: transparent;
}

Let me know :)

oh wow! perfect thanks

No problem :)
Glad to help!

This archived topic is closed to new replies.