Create a structured page layout by using layout tables and cells
Do you often admire Web sites that provide sophisticated structures for the content they contain? Perhaps these sites contain detailed tabs with rounded corners and complex border decorations with shadows. You wonder how long it took the Web designer to create — and you also wonder whether you could ever create such a site. With FrontPage 2003, you can create your own organized, visual structure for the content in your Web pages.
To get that professional look, you use layout tables and
cells:
When you format cells, you can freely place content on a page and use more decorative elements than you can with original FrontPage tables and cells. For example, you can use rounded corners, complex border decorations, drop shadows, gradient backgrounds, and curved headers or footers.
With the original FrontPage tables and cells, you can organize content, but you can't enhance the table's appearance the way you can by using layout cells.
You can use FrontPage to edit a Web page containing layout tables and cells even if the page were created by using another Web authoring tool, such as Macromedia Dreamweaver.
Before you can begin formatting cells, you must first add a layout table to your Web page. You can use the predefined layout tables that are available in the Layout Tables and Cells task pane — or you can draw your own.
After you add a layout table to your Web page, set the width and height of the table. You can also set the alignment and the properties for the top, left, bottom, and right margins by using pixels.
Next, decide where you want your Web content to appear on the page. Then add or draw cells to accommodate it. For example, perhaps you want to place a cell across the top of the page to contain the navigation bar, and then you want three cells to contain three separate blocks of content in the body of the page below the navigation bar. Knowing this ahead of time makes your layout job easier.
A good way to settle on a design layout is to find and copy another page design, one that meets your needs. There are many design ideas on the Internet.
Then you can use the FrontPage 2003 image tracing tool as a visual guide to trace the outline of that Web page. After you obtain the image, use it as a guide to help you draw your layout table and cells. The image itself appears in the background of the document window in Design view.
For more information about the image tracing technique, see About tracing images.
After you position the layout cells, you can begin setting the properties for those cells. This includes setting the following properties:
You can add page elements such as text, images, Web Parts, and other content to your layout cells. Click in the cell where you want to add content, and then type the text or insert the page element you want.
Note If you add Web Parts to your Web pages, your Web site must be hosted on a server that is running Microsoft Windows SharePoint™ Services. For more information about Web Parts, see About working with Web Parts.
There are a few different methods for resizing a layout table or cell, including the following:
When you click the arrow on the column width or row height resize label and then click Make Column Autostretch or Make Row Autostretch, you make that cell an autostretch cell. The cell is automatically resized to fit the available space of a site visitor's browser window.
Resize a layout table or cell in small increments by clicking the border of the table or cell and then pressing and holding ALT. Next, drag the border to resize it.
You can apply autostretch to only one row or column in a layout table. The other rows or columns in the layout table must be set at a fixed width or height.
By default, FrontPage adds a spacer image when you set a column to autostretch. A spacer image is a transparent GIF image that you can use to control spacing in autostretch tables. A spacer image consists of a single-pixel transparent image, outstretched to represent a specified number of pixels in width.
A browser cannot draw a table column that is narrower than the widest image contained in a cell in that column, so placing a spacer image in a layout table column forces browsers to keep the column at least as wide as the spacer image.
To move a layout table or cell, do one of the following:
Web developer Lori Kane is working closely with Sheela Word, the customer service department manager in the Consumer Care Division of Contoso Pharmaceuticals, to give the team Web site a fresh look. The customer service workgroup has a Windows SharePoint Services Web site on a department server.
Among other things, Sheela wants the site to include a list of departmental contacts, a location for shared documents, customer service region assignments including photographs of the customer service representatives, and a team tasks list.
From the Layout Tables and Cells task pane, Lori selects the predefined table layout with the following layout characteristics: Header, Body, Footer, and Left.
This table layout includes a horizontal layout cell across the top of the page that will contain the Consumer Care Division's Customer Service logo and some links to Web site information. It includes a vertical layout cell on the left that will contain the navigation links, and two cells on the right to include the main content.
Lori likes the number of cells provided in this predefined layout table, but she resizes them a bit anyway to meet her content needs.
She sets the properties for the layout cells, including setting the cell margins, specifying the borders and background colors, and adding some corners and shadows to the tabbed-like pages. She then adds the Consumer Care logo in the top layout cell and the navigation links in the left-hand layout cell.
Next Lori goes to work specifying where the content will go in the two right-hand layout cells.
Sheela and the customer service team love the new Web site and are already planning a new addition.
Sheela wants to include the latest regional sales numbers. Lori can include that functionality by creating a connection between the sales numbers in a source document and a Web Part in the Web site.
With the following procedures, you can create a structured page layout by using layout tables and cells. When you add layout tables and cells to your Web pages, you can resize and set properties for the tables and cells, and you can even delete them.
The layout tools in Microsoft FrontPage are turned off by default.
When you add a layout table, the tools are turned on automatically.
Tip
If you maintain a layout table or cell
in a page with the layout tools turned off, you can
always turn the tools back on by clicking
Show Layout Tool
![]()
Add
a layout table from the Table layout
template list
Draw
a layout table
To override the default margins of a Web page and let the layout table span to the edges of the document window, set the margin properties to 0 (zero).
Tip
To draw two or more cells, one after the
other, click Draw Layout Cell
, and
press and hold CTRL while you drag the pointer.
Set
the layout properties for a layout cell
Under Layout cell properties, do one or more of the following:
Set
the border properties for a layout cell
Under Borders, do one or more of the following:
Set
the header properties for a layout cell
Under Header, click Show header, and then do one or more of the following:
Set
the footer properties for a layout cell
Under Footer, click Show footer, and then do one or more of the following:
Change
the corner properties of a layout cell
Change
the shadow properties of a layout cell
Do one of the following:
Resize
a layout table or cell in small increments
Resize
a layout table or cell by using autostretch
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.
Do one of the following:
Delete
a single layout cell
Delete
a layout table
Do one of the following: