Page 1 of 1

Flexgrid background doesn't obey size limits

Posted: Tue Feb 10, 2026 2:29 pm
by alan_sh
A weird one and I am sure it's me not doing something right, but I cannot see what.

I have a flex grid that I have set as maximum width of 1280. All is OK except I have a background image and that will insist on going the full width of my screen and not limit itself to 1280 pixels. I've tried changin from 'cover' to 'contain' and all the other options. Nothing works.

This is the setting I have

Image

This is the WWB page I am working on which, in WWB sits nicely at 1280 pixels.

Image

And this is the output when I publish it.

Image

The project file can be found here - look at the page "master" (there's only an empty index page in there as well).
https://www.dropbox.com/scl/fi/im82g3yd ... 594ef&dl=1

Incidently, the layout grid exhibits the same behaviour.

Any help appreciated.

Alan

Re: Flexgrid background doesn't obey size limits

Posted: Tue Feb 10, 2026 3:08 pm
by crispy68
Did you try setting the max-width to a negative number like with a layout grid? Can't remember if this works for Flexgrid also like with layout grid.

Re: Flexgrid background doesn't obey size limits

Posted: Tue Feb 10, 2026 3:10 pm
by Pablo
This is normal behavior. The background will always use the full width.
When using layout grids you can limit the background by adding a dash in front of the max width value.
This is documented in the help.

In version 21, you will also be able to limit the background in Flex Grid / Flex Container / Card Container, just like in layout grids.

Re: Flexgrid background doesn't obey size limits

Posted: Tue Feb 10, 2026 5:24 pm
by alan_sh
Thanks both. I'll try the negagtive number idea. No, I didn't look in the help, silly me.

Pablo, V21 sounds ideal.

Alan