/    Sign up×
Community /Pin to ProfileBookmark

printing a page that is more broad then the width of A4

i have a page i want to send to the printer but its broad is more then the A4
page
can i do something in css so on print it will fuiit into A$ wihtought the need of the client to make any changes?
thnaksi nadvamnce
peleg

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWFeb 20.2006 — you can define a print stylesheet

http://www.alistapart.com/articles/goingtoprint/

but I don't think there is much if any support for changing the page orientation through css.
Copy linkTweet thisAlerts:
@mrhooFeb 22.2006 — Write a special stylesheet and set its link media attribute to print:

<link rel="stylesheet" type="text/css" media="print" href="css/hooprint.css" />

this style sheet is only seen by the printer- there are a lot of unsupported

properties in the spec; but you can control the width of the body and other elements:

body{width:8.5in;padding:1.25in;font-size:12px}

Test your css by using the 'print-view' menu in all of the browsers you can find.
Copy linkTweet thisAlerts:
@pelegk1authorFeb 22.2006 — can u explain a little more

i didnt understand exelly what do u mean?

can u explian more?

thnaksi n advance

peleg
Copy linkTweet thisAlerts:
@felgallFeb 22.2006 — Preview the page before printing and if it is too wide to print then switch your paper orientation to landscape before printing and complain to the site owner about their poor page design.
×

Success!

Help @pelegk1 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...