/    Sign up×
Community /Pin to ProfileBookmark

Netscape CSS printing problem: Float

I am trying to create a print stylesheet for a list of dealers so that we do not require a “Printable Version” button on the page, and I am running into some problems.

Most notable is the bug in Mozilla browsers that only prints one page of a multipage document. This bug is outlined on [URL=http://www.alistapart.com/articles/goingtoprint]A List Apart[/URL], where you’ll also find a workaround listed. But it isn’t working for me…

When printing the above-referenced page, the bug fix works (which is to add “float: none” to the stylesheet, applying it to the container that spans multiple pages). But when I print my page containing the same bug-fix, I get behavior similar to what you’d expect if I never applied the fix at all!

Here is the css for the print stylesheet:

[CODE]
<style type=”text/css” media=”print”>
body {
background: white;
width: 100%
}

div#screen_header {
display: none
}

div#screen_leftbar {
display: none
}

div#screen_body {
display:none
}

div#print_header {
position: absolute;
top: 0.0in;
left: 0.0in;
z-index: 0;
width: 6.0in
}

div#print_body {
position: absolute;
top: 0.35in;
left: 0.0in;
z-index: 1;
width: 6.0in;
float: none !important
}
</style>
[/CODE]

I am kinda new to a lot of CSS features… Maybe I am just forgetting something. I don’t know.

Thanks in advance!

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @richy240 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.10,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...