Page 1 of 2

Define Printable Area Width for IE?

Posted: Mon Jan 05, 2004 5:51 am
by patrikG
The problem is that printing a website yields perfect results under Mozilla/Linux but not under IE/Windows.
In IE it ignores the right margin, so that the content is being cut off. Does anyone know whether this is IE-issue is solvable with CSS and if so, how?

Here's the link to the website:

http://dutrain.de/new/

Posted: Mon Jan 05, 2004 7:51 am
by Gen-ik
Off the top of my head I don't know but here's a link to the MS site which lists every single object/method/property that IE can handle... you might find something in there.

http://msdn.microsoft.com/library/defau ... frame=true

It's one of my regular places of worship ;)

Re: Define Printable Area Width for IE?

Posted: Sun Jan 11, 2004 1:12 pm
by Derfel Cadarn
patrikG wrote:The problem is that printing a website yields perfect results under Mozilla/Linux but not under IE/Windows.
In IE it ignores the right margin, so that the content is being cut off.
I just checked your site and noticed that in my Mozilla 1.4 (Linux) the rightmargin is being ignored too, so the content is cut off here too!

Posted: Sun Jan 11, 2004 1:18 pm
by patrikG
Ack, &*$%. It's raining work again... <sigh>

Thanks for telling me, Derfel - I appreciate it. :)

Posted: Sun Jan 11, 2004 1:21 pm
by Derfel Cadarn
I hate it to bring bad news :oops:
:roll:

Posted: Sun Jan 11, 2004 1:26 pm
by patrikG
I asked for it, so I am not complaining, only moaning quietly ;)

Thanks bringing those bad news :)

Posted: Tue Jan 13, 2004 8:22 am
by Bill H
By default IE sets margins at .75" which is why most websites get cut off.

Go to File menu, Page Setup and change the left and right margins to .50" or smaller and that will probably fix the problem.

Posted: Tue Jan 13, 2004 8:26 am
by patrikG
Thanks for that tip, but changing the setting on my machine won't change the settings on the client's nor the punters' machines.

So I am looking for a CSS solution, I reckon - just need to find the time to do it...

Posted: Tue Jan 13, 2004 8:46 am
by Gen-ik
Can't you just set the margin of the <body> in CSS. body { margin:0px; } or body { margin-right:20px; } and so on.

Also, having the contents of your site within a 'container' object might help. For example create a DIV which is 700px wide and then put everything into that div <body><div class="container"> //website stuff goes in here </div></body>

May or maynot be of any use. However using these methods means I've never had any problems when it comes to printing pages from my own websites.

Posted: Tue Jan 13, 2004 8:58 am
by patrikG
Gen-ik wrote:Can't you just set the margin of the <body> in CSS. body { margin:0px; } or body { margin-right:20px; } and so on.
Yeah, that's standard on my websites, but the printing is still bugged...
Gen-ik wrote:Also, having the contents of your site within a 'container' object might help. For example create a DIV which is 700px wide and then put everything into that div <body><div class="container"> //website stuff goes in here </div></body>
Good idea, just tried it, didn't work. The tables all have relative width as usual (yes, I, for one, am stil using tables on my website), but that chunk of HTML simply won't print properly - yet....

Gen-ik wrote: I've never had any problems when it comes to printing pages from my own websites.
Yup. This is a first for that one. I have lost my "not-IE-printable" virginity. And it still hurts.

Posted: Tue Jan 13, 2004 11:26 am
by Bill H
I give my viewers some instructions: image

Posted: Tue Jan 13, 2004 11:30 am
by patrikG
It was actually a "no wrap" in a <td> which took up about 30% of the screen. Ah, how we love HTML debugging...

Posted: Tue Jan 13, 2004 11:33 am
by patrikG
Bill H - thanks for your help and efforts, but changing local settings on my version of IE while 2 billion users on the internet use their own settings to view that website won't change a thing to them.

Hence I was debugging the code.

I really appreciate the effort though.

Posted: Tue Jan 13, 2004 11:38 am
by Bill H
Wow, I wish I had 2 billion people viewing my website.

Posted: Tue Jan 13, 2004 11:43 am
by patrikG
So do I ;)