Page 1 of 1
What am I doing wrong?
Posted: Tue Feb 09, 2021 12:52 am
by ghines
Hi,
I'm using WWB16 and have placed a table in a layout grid. The columns are set to equal widths and look fine in WWB.
However in any browser the column widths are different:
Is there something I have done wrong?
TIA
Re: What am I doing wrong?
Posted: Tue Feb 09, 2021 6:51 am
by Pablo
In HTML, table widths are dynamically determined by the browser based on the content. Each browser does this differently.
Note that HTML tables are not suppose to be used for layout purposes. That is what Layout grids are for.
Re: What am I doing wrong?
Posted: Tue Feb 09, 2021 7:04 am
by ghines
Thanks for the reply @Pablo.
Would a Flex Grid be a better option as I did try that but could not find out how to make the background size be limited to the page width as it seemed to always go the full screen width no matter what I did.
Re: What am I doing wrong?
Posted: Tue Feb 09, 2021 8:20 am
by Pablo
You can use the maximum-width property to limit the width of the grid.
Re: What am I doing wrong?
Posted: Tue Feb 09, 2021 8:27 am
by ghines
Pablo wrote: Tue Feb 09, 2021 8:20 am
You can use the maximum-width property to limit the width of the grid.
Yes, that limit's the width of the grid put not the background.
Re: What am I doing wrong?
Posted: Tue Feb 09, 2021 10:35 am
by Pablo
For layout grids you can also use a negative max-width. See the help for more details.