Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

23 Converting tables to HTML > 23.4 Specifying table attributes > 23.4.9 Determining the width of table columns > 23.4.9.4 Maintaining the width of table columns via relative sizing


23.4.9.4 Maintaining the width of table columns via relative sizing

Suppose you have specified the following settings as defaults for all tables in your document:

[Tables]

TableSizing = Adaptive

Border = 1

Spacing = 0

Padding = 4

And suppose for one particular table format, TwoCol, you want relative column widths:

[TableSizing]

TwoCol = Percent

This setting would make the width of each column in each TwoCol table a percent of the width of that particular table; but the setting would not specify the percentage.

If what you really want is for each TwoCol table to have columns of equal width, instead you would specify:

[TableCellAttributes]

TwoCol = width="50%"

Naturally, this setting works only if all TwoCol tables have exactly two columns.

To set the width of the table itself, you could add:

[TableAttributes]

TwoCol = width="100%"

This setting would eliminate your [Tables] settings for border, cellpadding, and cellspacing; so you would have to add them to the attribute list for TwoCol tables:

[TableAttributes]

TwoCol = width="100%" border="1" cellpadding="4" cellspacing="0"

See §23.4.2 Overriding attributes for selected tables.



23 Converting tables to HTML > 23.4 Specifying table attributes > 23.4.9 Determining the width of table columns > 23.4.9.4 Maintaining the width of table columns via relative sizing