Your Ad Here

Thursday, February 26, 2009

Printing with CSS?

I'm trying to print the contents (in their entirety) of just one div on the page. It happens to be the content div, which is relatively long...and IT WON'T PRINT >_<

at least not all of it...

This is the print.css

Code:
---------
@media print {
#content {overflow: visible;
height: auto;
top:0px;
left:0px;
margin: 0 auto;}
html {
height:100%;
padding:0;
margin:0;
border:0;
font-family: Arial, Helvetica, sans-serif;
overflow: auto;
}
body {
overflow:visible; }

#head, #head2, #head2 img, #left, #foot {display : none;}
table{page-break-inside: avoid;
page-break-after: auto;
page-break-before:always;}
}
---------


Read More...
Your Ad Here

No comments: