Closed Bug 274961 Opened 20 years ago Closed 20 years ago

Printing (Print Preview) does not work properly when CSS has defined height : 100%

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 154892

People

(Reporter: vesa, Assigned: bugzilla)

References

()

Details

As you can see when you try to print preview this page and its subpages, the
print preview will only render one page, often overflowing from the page. I
didn't test printing, but I guess it would only print one page.

The CSS has following content at the beginning:

/* IE 5+ hack */

html, body, DIV.content {
	min-height: 100%;
	height: 100%;
	width: 100%;
}

html>body, html>body DIV.content {
	height: auto;
}

DIV.content {
	position: absolute;
	left: 0px;
	top: 0px;
	border-width : 0px;
	padding : 0px 0px 0px 0px;
	background : url(http://koti.mbnet.fi/merri/img/bg_bottom.png) bottom center
no-repeat;
}

BODY {
	background : url(http://koti.mbnet.fi/merri/img/bg.png) top center repeat-y;
	font-family : tahoma, arial, helvetica, sans-serif;
	font-size : 10pt;
	background-color : #3671a8;
	color : #102050;
	margin : 0px;
	padding : 0px;
	text-align : center;
}


The page uses div.content as the main layer and I believe this is what causes
the problem. The trick makes the layer always be atleast height of the visible
window. If there is more content, then the layer adjusts.

*** This bug has been marked as a duplicate of 154892 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → DUPLICATE
Version: 1.0 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.