I have noticed that, with a layout grid, I have to set the flexgrow and flexshrink to zero if there is only one cell (with either text or a menu in) but have to set these two parameters to a one if there are multiple cells in there (each with something in with flexgrow and flex shrink set to one).
If I don't do this, the results are not what I expect (menus are all over the place, for example).
Why is this? I'm just curious - I know what I need to do to make it work.
cheers
Alan
layout grid grow & shrink params
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
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
Re: layout grid grow & shrink params
The flexbox properties only apply to flexbox container and flexgrid, not to layout grids.
If you use them in a layout grid then the results will be 'undefined'.
If you use them in a layout grid then the results will be 'undefined'.
Re: layout grid grow & shrink params
OK - thanks. I'll continue playing around and see what "undefined" results I get.
Fun times. I enjoy learning new stuff.
Alan
Fun times. I enjoy learning new stuff.
Alan
Re: layout grid grow & shrink params
So, all flexboxes should be set to 0 and 0 for the grow and shrink parameters.
What I have done is set any text or buttons inside the flex box cells to 1 and 1. Is that the right way to do things?
Alan
What I have done is set any text or buttons inside the flex box cells to 1 and 1. Is that the right way to do things?
Alan
Re: layout grid grow & shrink params
If you use layout grids, then I recommend to keep the default settings (flex-grow/flex-shrink= 0)
Re: layout grid grow & shrink params
Thanks. I'll check the ones I have used.