/    Sign up×
Community /Pin to ProfileBookmark

Printing problem with large image

I have a web page. Originally all content was displayed sequentially (top to bottom according to position in the body tag of the html file). In the middle of the page there was a full page image (7.5 x 10 inches). When I printed the web page using the standard browser print option the large image would begin on a new page and the entire image would be printed. In this version I used a CSS for applying styles, but not positioning.

I subsequently changed to absolute positioning using the CSS. The web page displays fine, but when printed the large image does not start on a new page and the bottom 1/4 is not printed at all.

Can you tell me how I can continue to use absolute positioning and still get a page break before the image is printed?

Thank you,

Marcus

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 12.2007 — Try @media print {
#imageID {page-break-before: always;}
}

No guarantee it will work as css print is not well supported
×

Success!

Help @mlibkind 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.18,
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,
)...