/    Sign up×
Community /Pin to ProfileBookmark

Printing web pages without ‘chopping’

This is probably not an HTML question, although it might be tied in with web browsers and printer set-ups. Is there any way to force a new page in the body of a web page when you try to print it? The reason for asking this is that often an image on a web page will be split when it reaches the end of a printer page.

Actually, a similar thing happens when an image is wider than the standard portrait width of your printer. The image will truncate on the right side. You can control this when printing an image by specifying ‘size to page’ but this doesn’t apply when the image is embedded in an HTML document.

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@d4p41nOct 06.2005 — Hi Grobius!

try to use a css file for that, like:
[CODE]
<link rel="stylesheet"
type="text/css"
media="print" href="print.css" />
[/CODE]


that css file defines how the page will look like, when you are going to print it...

find more about that topic, by searching in a search engine for "css printing".

best regards,

d4p41n
×

Success!

Help @Grobius 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.17,
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,
)...