August 6, 2001 - Formatting the Content Page | WebReference

August 6, 2001 - Formatting the Content Page

Yehuda Shiran August 6, 2001
Formatting the Content Page
Tips: August 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

When utilizing print templates in later versions of Internet Explorer, DeviceRect formats the master page, while LayoutRect formats the content. Notice the attributes of LayoutRect below. The ID attribute needs to be unique per page. The CONTENTSRC attribute specifies the URL of the content to be formatted. Here we specify the tip from the day before yesterday. The CLASS attribute links the element with its designated style definition, contentstyle. For each page, you need to specify which element is next in line to hold the content overlfow. Use the NEXTRECT attribute to list the ID of the next LayoutRect element. In our case below, we include only two pages, and indeed you can see that the tip does not need more than two pages. Examine what the day before yesterday's tip looks like. Here is the HTML code:

<STYLE TYPE="text/css">
  border:1 dashed gray;
<IE:LAYOUTRECT ID="layoutrect1"  
<IE:LAYOUTRECT ID="layoutrect2" CLASS="contentstyle"/>
For more information on print templates, go to Column 89, Print Templates, Part I.