Microsoft KB Archive/833691

= Layout cells do not autostretch correctly when margins are applied in FrontPage 2003 =

Article ID: 833691

Article Last Modified on 2/5/2007

-

APPLIES TO


 * Microsoft Office FrontPage 2003

-





SUMMARY
''This article describes a problem where a column does not correctly expand automatically to fill a browser window in Microsoft Office FrontPage 2003. The problem may occur when margins are applied to a table or to a cell that also uses autostretch. To resolve this problem, follow the steps that are described in the &quot;Resolution&quot; section of this article.''



SYMPTOMS
In Microsoft Office FrontPage 2003, a column will not correctly expand automatically to fill as much of a browser window as possible (this functionality is referred to as autostretch) by using the Make Column Autostretch functionality, if a margin has been applied to the column by using the Cell Formatting task pane.



CAUSE
This issue occurs if you apply margins to the same layout table or to the same cell that you want to apply autostretch.



WORKAROUND
To work around this issue, apply the layout cell autostretch before you apply a margin or any other cell formatting. To apply autostretch, follow these steps:
 * 1) In Page view, at the bottom of the document window, click Design.
 * 2) To activate a layout table, move the pointer over the border of the table.

Click the border after the border turns green.
 * 1) On the column width label or on the row height label, click the arrow to display the drop-down menu, and then click Make Row Autostretch or click Make Column Autostretch.

To apply a margin, follow these steps:
 * 1) Right-click the layout cell where you want to apply a margin, and then click Cell Formatting.
 * 2) Enter the size of the margins that you want to apply (in pixels) in the appropriate Margin fields (Left, Top, Right, and Bottom) in the Cell Formatting task pane.

In this example, 5 was typed in the Left box of the Margin section.

Note You can apply autostretch to only one cell in a layout table. The corresponding rows or columns in the layout table must be set at a fixed width or height.

Note Applying a margin to a layout table or to a cell creates the unintended effect of disabling access to the width and the height properties by using the main menu or the shortcut menu. An additional embedded table and cell is also added to the overall table. This in turn disables autostretch that was enabled in step 3 earlier while enabling autostretch in the newly added embedded cell. To work around this unwanted effect, follow these steps:  Drag the right edge of the FrontPage 2003 program window so that you can see the newly embedded cell that appears in the Design tab or in the Split tab of FrontPage 2003. Click the Split tab. In the lower Design area of the Split tab, point to the 5 pixel margin area that you created in step 2 of the 'Apply a margin' section.

The outer border should turn green. Click the margin. The code that is related to the area that you just clicked is now highlighted in the upper Code view of the Split tab. At the top of the highlighted section of the code, double-click to select the integer value in the  parameter of the element,.

Type 100% to replace the  parameter integer value.  If you created a 5 pixel Left margin in step 2 of the &quot;Apply a margin&quot; section, the first  element that you see will look similar to the following: <td width=&quot;5&quot;> </li> In the second  element after the   element that you just modified, double-click to select the integer value in the   parameter of this second   element.

Type 100% to replace the  parameter integer value. In the Design view of the Split tab, point to a cell in the modified table to view the results of your code change. Or, click the Design tab to view the code change.</li> Drag the right edge of the FrontPage program window back and forth so that you can see the whole layout table or cell autostretch correctly with the new margin included.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article.

Additional query words: margin frontpage column layout

Keywords: kbprb KB833691

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.