/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] CSS Print Style Error – first page printed only

Hello to all, I hope someone can help (well, I wouldn’t be posting if this weren’t the case) …

I have created a Print Style Sheet for a XHTML page containing a Form and when viewed in Opera (File > Print Preview) the page is spread over 3 pages, it is formatted correctly, and all info is present – fine. But when I go to File > Print Preview in other browsers (IE, Netscape, FF, etc.) the web page does not extend past the first page, and so, only one third of the content is visible. And this is still the case when I print the page. Why aren’t these browsers displaying the XHTML code in the way specified in the Print Style Sheet? Does the presence of the Form have anything to do with this error?

Thanks in advance.

ray.

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@rolmesauthorJun 08.2007 — just had a look around the web and managed to find the answer...

...the main content of the page is surrounded by a Div tag, which has the position property set to absolute, and this was causing the problem. This has been changed (in print style sheet) to static, and now the page prints and views in print preview fine.
Copy linkTweet thisAlerts:
@ray326Jun 08.2007 — Thanks for returning with the solution.
Copy linkTweet thisAlerts:
@MaryEllenJun 13.2007 — I have to add on to this because I was having the same problem, found this thread and thought, "AHA". well here's another simple thing, perhaps more experienced folks will know this

Mozilla/Firefox users: If you are specifiying a media type for your print style sheet, be sure to also add Media="screen" for your screen sheet . . . it only took me about 2 hours to figure out that gem.

Mary Ellen
×

Success!

Help @rolmes 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.28,
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,
)...