Here's something you can add to the end of the style.css to make prints come out cleaner for your main content

@media print
{
#wrapper1 {
margin: 0;
padding: 0;
}
#wrapper2 {
margin: 0;
padding: 0;
}
#header {
display: none;
}
#sidebar-left {
display: none;
}
#main {
width: 100%;
}
#footer {
display: none;
}
hr.hide {
display: none;
}
.centercolumn {
width: 99%;
margin: 0;
padding: 0;
}
.centerpadding {
margin: 0;
padding: 0;
}
}

Comments

alt_paul’s picture

Sorry, you would also need at the end of your layout.css:


@media print {
	.centercolumn {
		margin: 0;
	}

Mad Maks’s picture

Sorry, you would also need at the end of your layout.css:

@media print {
.centercolumn {
margin: 0;
}

i think you forgot a }

i will add this code to the cvs head with one change:
i added also:

#sidebar-right {
display: none;
}
Mad Maks’s picture

Version: 4.7.x-1.x-dev » 5.x-1.0
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)