In case anyone else is coming into this thread looking for answers, I’ve been stumped on this same problem for awhile and think I got it working (instead of trying to put a picture, I wanted a CSS gradient in the background for various reasons).
What I’ve been running into is this: if I put my desired background:
info in the body { }
portion of the CSS file, it fills up the middle part, but the margins are white. If I put it in the html { }
portion, I can make a nice border that fills the margins, but now the inside isn’t covered.
After looking through the main.css file (and running enough attempts to lock myself out of the fitbit API), I appear to have gotten it by adding my background:
under .region.fullscreen.below
. Not knowing how CSS works, I of course only recently figured out that this has to be outside the body{}
designation that comes standard in the custom.css file. The code looks kind of like this:
body {
}
.region.fullscreen.below {
background: linear-gradient(208deg, #235182, #196586);
}
Hope this helps anyone else.