Hi there nsmsh,
and a warm welcome to these forums.
You really should have started a new thread for your problem.
Removing sections of a document for printing is done with CSS.
Here is a basic example...
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>untitled document</title>
<link rel="stylesheet" href="screen.css" media="screen, print">
<style media="screen, print">
body {
background-color: #f0f0f0;
font: 1em/150% verdana, arial, helvetica, sans-serif;
}
#header, #content, #footer {
padding: 2em;
border: 0.062em solid #999;
background-color: #ccc;
text-align: center;
}
#content {
margin: 0.5em 0;
background-color: #fff;
}
@media print {
#header, #footer {
display: none;
}
}
</style>
</head>
<body>
<div id="header">
<h1>This is the header</h1>
</div>
<div id="content">
<h2>This is the content</h2>
</div>
<div id="footer">
<h3>This is the footer</h3>
</div>
</body>
</html>
coothead
Bookmarks