Forum Moderators: not2easy
Note that the border is around the outermost DIV and that there are three DIVs defined within this containing DIV. The behavior of the border printing changes depending on whether each inner DIV spans multiple pages.
Here is some sample html and the corresponding css that illustrates the problem:
TEST.HTML
=========
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en">
<head>
<title>Test Page to Illustrate Border Printing Problem</title>
<meta name="Source Version" content="4.1"/>
<link rel="stylesheet" type="text/css" href="css/test.css"/>
</head>
<body>
<div id="content">
<div id="upperParagraphs">
<p>
Just a lot of random text to fill some space and make it seem like there is
some actual content here. These are just paragraph tagged sections of text that
repeat several times in order to fill space and make it easier for this div
to span a page.
</p>
<p style="margin:350px 0px">
Just a lot of random text to fill some space and make it seem like there is
some actual content here. These are just paragraph tagged sections of text that
repeat several times in order to fill space and make it easier for this div
to span a page.
</p>
<p>
Just a lot of random text to fill some space and make it seem like there is
some actual content here. These are just paragraph tagged sections of text that
repeat several times in order to fill space and make it easier for this div
to span a page.
</p>
<p>
Just a lot of random text to fill some space and make it seem like there is
some actual content here. These are just paragraph tagged sections of text that
repeat several times in order to fill space and make it easier for this div
to span a page.
</p>
<p>
Just a lot of random text to fill some space and make it seem like there is
some actual content here. These are just paragraph tagged sections of text that
repeat several times in order to fill space and make it easier for this div
to span a page.
</p>
</div>
<div id="centerTable">
<table>
<tr><td colspan=3>* * * * * * * * * * * * * * * * * * * * * * * * * </td></tr>
<tr>
<td>
Cell one containing nothing
</td>
<td>
Cell two containing nothing
</td>
<td>
Cell three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing nothing
</td>
<td>
Row two, two containing nothing
</td>
<td>
Row two, three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing absolutely nothing
</td>
<td>
Row two, two containing absolutely nothing
</td>
<td>
Row two, three containing absolutely nothing
</td>
</tr>
<tr><td colspan=3>* * * * * * * * * * * * * * * * * * * * * * * * * </td></tr>
<tr>
<td>
Cell one containing nothing
</td>
<td>
Cell two containing nothing
</td>
<td>
Cell three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing nothing
</td>
<td>
Row two, two containing nothing
</td>
<td>
Row two, three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing absolutely nothing
</td>
<td>
Row two, two containing absolutely nothing
</td>
<td>
Row two, three containing absolutely nothing
</td>
</tr>
<tr><td colspan=3>* * * * * * * * * * * * * * * * * * * * * * * * * </td></tr>
<tr>
<td>
Cell one containing nothing
</td>
<td>
Cell two containing nothing
</td>
<td>
Cell three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing nothing
</td>
<td>
Row two, two containing nothing
</td>
<td>
Row two, three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing absolutely nothing
</td>
<td>
Row two, two containing absolutely nothing
</td>
<td>
Row two, three containing absolutely nothing
</td>
</tr>
<tr><td colspan=3>* * * * * * * * * * * * * * * * * * * * * * * * * </td></tr>
<tr>
<td>
Cell one containing nothing
</td>
<td>
Cell two containing nothing
</td>
<td>
Cell three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing nothing
</td>
<td>
Row two, two containing nothing
</td>
<td>
Row two, three containing nothing
</td>
</tr>
<tr>
<td>
Row two, one containing absolutely nothing
</td>
<td>
Row two, two containing absolutely nothing
</td>
<td>
Row two, three containing absolutely nothing
</td>
</tr>
<tr><td colspan=3>* * * * * * * * * * * * * * * * * * * * * * * * * </td></tr>
</table>
</div>
<div id="bottomTable">
<table width="100%">
<tr>
<td>RED</td>
<td>YELLOW</td>
</tr>
<tr>
<td>GREEN</td>
<td>BLUE</td>
</tr>
<tr>
<td>PURPLE</td>
<td>CHARTREUSE</td>
</tr>
<tr>
<td>RED</td>
<td>YELLOW</td>
</tr>
<tr>
<td>GREEN</td>
<td>BLUE</td>
</tr>
<tr>
<td>PURPLE</td>
<td>CHARTREUSE</td>
</tr>
<tr>
<td>RED</td>
<td>YELLOW</td>
</tr>
<tr>
<td>GREEN</td>
<td>BLUE</td>
</tr>
<tr>
<td>PURPLE</td>
<td>CHARTREUSE</td>
</tr>
<tr>
<td>RED</td>
<td>YELLOW</td>
</tr>
<tr>
<td>GREEN</td>
<td>BLUE</td>
</tr>
<tr>
<td>PURPLE</td>
<td>CHARTREUSE</td>
</tr>
<tr>
<td>RED</td>
<td>YELLOW</td>
</tr>
<tr>
<td>GREEN</td>
<td>BLUE</td>
</tr>
<tr>
<td>PURPLE</td>
<td>CHARTREUSE</td>
</tr>
<tr>
<td>RED</td>
<td>YELLOW</td>
</tr>
<tr>
<td>GREEN</td>
<td>BLUE</td>
</tr>
<tr>
<td>PURPLE</td>
<td>CHARTREUSE</td>
</tr>
</table>
</div>
</div><!-- end content -->
</body>
</html>
TEST.CSS
========
html { min-height: 100%; margin-bottom: 1px; }
* {margin: 0; padding: 0;}
body {
padding: 0px;
text-align: center;
margin: 0px;
color: #333333;
}
#content {
padding: 0 3px 10px;
border-style: solid;
}
#content p {
margin: 5px;
}
table {
padding: 0;
margin: 0;
font-size: 100%;
font-family: Verdana, Arial, sans-serif;
}
p {
font-size: 95%;
margin: 10px 5px 5px 5px;
color:#333333;
}