Flexgrid background doesn't obey size limits

Questions related to the Responsive Web Design tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.

Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
Post Reply
alan_sh
 
 
Posts: 1953
Joined: Tue Jan 01, 2019 5:50 pm

Flexgrid background doesn't obey size limits

Post 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
User avatar
crispy68
 
 
Posts: 3163
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Flexgrid background doesn't obey size limits

Post 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.
User avatar
Pablo
 
Posts: 24256
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Flexgrid background doesn't obey size limits

Post 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.
alan_sh
 
 
Posts: 1953
Joined: Tue Jan 01, 2019 5:50 pm

Re: Flexgrid background doesn't obey size limits

Post 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
Post Reply