I have a page with a top navigation area, a side navigation area, a control button area and somewhere in the middle a DIV with an id="content" that contains content.
I would like to be able to print just the contents of that DIV. I realize I have many lines of code making my other areas invisible and resizing everything but is there some alternative? Is there some way I can just print the contents of the DIV?
Take a look at using Media Types – specifically
@media print– in your CSS to specify styling that only applies to printing.This way, you can write a stylesheet that hides everything except your “area inside a DIV”.