The override of style and layout for physical printing is controlled by CSS.
Within CSS you can set different styles for different media types.
The default media type is
screen
as most websites are primarily designed to be displayed on a screen. But without explicit
print
declarations the browser will do it's best to transform you screen page into a printable format.
You define different sections for different media types using the
@media
declaration in CSS.
The following article will take you through the basics of setting this up.
How To Set Up A Print Style Sheet[
^]