August 6, 2001 - Formatting the Content Page
August 6, 2001 Formatting the Content Page Tips: August 2001
Yehuda Shiran, Ph.D.
|
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:
<HTML XMLNS:IE>
<HEAD>
<?IMPORT NAMESPACE="IE" IMPLEMENTATION="#default">
<STYLE TYPE="text/css">
.contentstyle
{
width:5.5in;
height:8in;
margin:1in;
background:white;
border:1 dashed gray;
}
</STYLE>
</HEAD>
<BODY>
<IE:LAYOUTRECT ID="layoutrect1"
CONTENTSRC="010804.html"
CLASS="contentstyle"
NEXTRECT="layoutrect2"/>
<IE:LAYOUTRECT ID="layoutrect2" CLASS="contentstyle"/>
</BODY>
</HTML>
For more information on print templates, go to Column 89, Print Templates, Part I.