How do I print the indicated div (without manually disabling all other content on the page)?
I want to avoid a new preview dialog, so creating a new window with this
Best css to fit space empty height:
@media print { body * { visibility: hidden; height:0; } #section-to-print, #section-to-print * { visibility: visible; height:auto; } #section-to-print { position: absolute; left: 0; top: 0; } }