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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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:

<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.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business