- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 11 Sep 2007 03:41:14 -0400
- To: www-style@w3.org
- CC: Markus Mielke <mmielke@windows.microsoft.com>
This is my understanding of David Baron's presentation on column width balancing. (Note to www-style: this is intended to reflect current implementations.) Once each column's minimum content width (MCW) and preferred width (PW) is calculated and the final table width is known: If the final table width is the sum of the columns' MCWs, each column gets its MCW. If there is excess width (final width - sum of MCWs), then the excess gets distributed as follows: 1. Distribute the excess width to the columns with percentage widths in proportion to their percentages, but not beyond satisfying their specified widths. 2. If there is still excess width left over, increase the width of each column with a specified length width in proportion to the difference of its specified width and its MCW (specified width - MCW), but not beyond satisfying its specified width. 3. If there is still excess width left over, increase the width of each column with auto width in proportion to the difference of its preferred width and its MCW (preferred width - MCW), but not beyond the preferred width. 4. If there is still excess width left over, increase the width of each auto width column in proportion to its preferred width. 5. If there is still excess width left over, increase the width of each column with a specified length width in proportion to its specified width. 6. If there is still excess width left over, increase the width of each column with a percentage widht in proportion to its percentage. 7. If there is still excess width left over, increase the width of each column equally. ~fantasai
Received on Tuesday, 11 September 2007 07:41:29 UTC