Okay, one way to do this:
Code:
<style type="text/css">
@media SCREEN {
div { display: block; }
}
@media PRINT {
div { display: none; }
div.PRINTME { display: block; font-family: courier; font-size: medium; }
}
</style>
...
<script type="text/javascript">
function printDiv( id )
{
var pdiv = document.getElementById(id);
var saveClass = pdiv.className;
pdiv.className = "PRINTME";
window.print();
pdiv.className = saveClass;
}
</script>
You can expand on that theme. As shown, that will only affect div's. If you need it to affect content outside of div's then the CSS needs to be adjusted. But the concept is correct.
Basically, you can use the media choice to completely control the appearance of anything on the page.