Basscyst
01-22-2004, 11:46 PM
Hello-
I believe this can be done with CSS - How can I make it so that at print only a specific <div> within the page is printed. Also if this can be accomplished, the div's overflow is set to auto will it print the information that is overflowing? Currently I have a javascript that generates a tabular report displayed in the div, when the user goes to print it out anything that is not currently visible is cut off and not printed. The actual code is extremly lengthy so here is a non working example.
<html>
<head>
<style type="text/css">
.print
{
print:yes;
}
.noprint
{
print:no;
}
</style>
</head>
<body>
<div class="noprint">A whole bunch of whatever</div>
<div class="print">The info I want printed</div>
</body>
</html>
TIA,
Basscyst
I believe this can be done with CSS - How can I make it so that at print only a specific <div> within the page is printed. Also if this can be accomplished, the div's overflow is set to auto will it print the information that is overflowing? Currently I have a javascript that generates a tabular report displayed in the div, when the user goes to print it out anything that is not currently visible is cut off and not printed. The actual code is extremly lengthy so here is a non working example.
<html>
<head>
<style type="text/css">
{
print:yes;
}
.noprint
{
print:no;
}
</style>
</head>
<body>
<div class="noprint">A whole bunch of whatever</div>
<div class="print">The info I want printed</div>
</body>
</html>
TIA,
Basscyst