/    Sign up×
Community /Pin to ProfileBookmark

How To Center Pages In IE Print Output?

Howdy, folks!

On a site I’m building, the <div align=”center”> </div> tags do a fine job of aligning my tables in all browsers’ monitor displays, and also on the printed page output by Firefox and Netscape. However (on the WinXP platform at least) IE’s print output is not centered, cutting my content off on the right. I’ve tried centering the body in the style sheet to no avail, although my knowledge of CSS is as yet nascent. My employer prints EVERYTHING, so this is essential I fix. Does anyone know what I must do?

Thanks for your time,
Jay

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyFeb 22.2006 — Try using this css and remove the depreciated align tag.
...
&lt;style type="text/css"&gt;
@media all{
body {
text-align: centre;
margin: 0;
padding: 0;
}
#wrap{
margin: 0 auto;
text-align: left;
width:760px;
}
}
@media print{
#wrap {
margin: 3em;
width: 100%;
}
}
&lt;/style&gt;
...
&lt;body&gt;
&lt;div id="wrap"&gt;
&lt;p&gt;The Page as normal&lt;/p&gt;
&lt;/div&gt;
...
×

Success!

Help @jaysparks 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.24,
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,
)...