CFDOCUMENT: Creating a div that is 8.5 x 11 inches.
I am trying to get a layout to work with cfdocument. I created a very simply HTML page with a div that is set to 8.5 x 11 inches. So why when I try to create a PDF out of it does it not span the page? I don't get it at all. My Code is below, and attached is a screen shot of the output. This should be so simple.... What am I missing? Adobe?
<cfsavecontent variable="page">
<cfoutput>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
body
{
margin:0in;
padding:0in;
}
.mypage
{
background: white;
border:1px solid ##dbdbdb;
height: 11in;
width: 8.5in;
}
.header
{
font-family:arial;
color:white;
font-size:.18in;
padding:.2in;
}
</style>
</head>
<body>
<div class="mypage">
<div style="background:green;width:100%;">
<span class="header">
I am a header inside a div that should span the page!
</span>
</div>
</div>
</body>
</html>
</cfoutput>
</cfsavecontent>
<cfoutput>
<cfdocument
fontembed = "yes"
marginbottom = "0"
marginleft = "0"
marginright = "0"
margintop = "0"
pagetype = "letter"
unit = "in"
format = "pdf">
<cfdocumentsection>
#page#
</cfdocumentsection>
</cfdocument>
</cfoutput>
I know I could set the div to 100%, but I need a specific width when creating the layout.... So I should be able to set it to 8.5 no??

