Laying Out Multiple Table Components
By divas on Jul 02, 2007
You can use the layout components, such as the Group Panel and the Grid Panel, to easily layout and size container components, such as the Table component. In the screen shot above, the two tables on the left are in a Group Panel, and the two on the right are in a Grid Panel. I can resize or move either panel in the Visual Designer, and the contents will resize and move in accordance (they won't resize in the Visual Designer, but they will resize in the client). The trick is to set the width property of each tables to 100% so that they resize based on the size of their container.
Because the Visual Designer does not display the widths of the tables accurately, you have to right-click on the page and choose Preview in Browser to get a feel of how the tables will actually appear in the client.
- Set the Group Panel component's block property to true. This encloses the panel in a <div> tag.
- You can set the Group Panel component's separator property to <br /><br /> to put spacing between the tables.
- Set the Table component's width property to 100%. If you make changes to the table, the IDE may reset this property so keep checking to make sure it is 100%.
- I find it best to leave the Table Column width properties blank or set them at percentage amounts, such as 10%.