Note: You will probably want a separate print stylesheet, or a media block for print in your regular stylesheet, so that when you print out, the div shows all the content and not just a portion within a box with scrollbars. It's been a while since I last did something like that, but at the time, it was needed.
<link rel="stylesheet" type="text/css" href="styles/styles-main.css" media="all,screen" />
<link rel="stylesheet" type="text/css" href="styles/styles-print.css" media="print" />
OR
/* ... CSS code ... */
@media "print" {
#framearea {
width: auto; /* or other value as needed; was 550px; */
height: auto; /* or other value as needed; was 150px; */
margin-bottom: auto; /* or other value as needed; was 10px; */
}
.framebody {
overflow: auto;
width: auto; /* or other value as needed; was 550px; */
height: auto; /* or other value as needed; was 150px; */
}
} /* @media "print" */