I am nearly finished developing a new company website. Today I was testing it and noted that if I go to a page of the site in IE7 and click on print preview, if the content fits on one page the review looks fine. However, if it is a longer web page and would naturally go on more than one page, when I hit print preview, the preview comes up blamk and the indicator at the bottom that would normally say page 1 of 2 for example, starts spinning the number 1 of 3, 1 of 4, etc. I watched the of number pass 300 and it was still going. So it is not possible to print.

If I try the same page in Firefox or IE8 this problem does not occur and the preview comes up fine and says 1 of 2.

Has anyone seen this or have any suggestions please?

Comments

lummas’s picture

Having investigated further I have also discovered that when I print any page (1 page or more) from IE8 or Firefox, my printed output looks like my screen. However, if I print from IE7, blocks move or show up differently to the way they look on screen. So I seem to have a more widespread problem printing in IE7.

Help.

cernosko’s picture

I have also the same problem with some sites. You have to put RESET to your print.css file.

<link type="text/css" rel="stylesheet" media="print" href="/sites/all/themes/garland/css/print.css?w" />

I add this code to my print.css file and it works. (important is float:none ! important;)

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	float:none ! important;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}