Jump to content

Printing pages in IE6


SillyBilly

Recommended Posts

I have many pages that will print as they appear on the display. I have included this code to enable black on white printing, rather than the background and font colors.

@media print {body{background-color:#ffffff; background-image:none; color:#000000; }#ad{ display:none;}#leftbar{ display:none;}#contentarea{ width:100%;}

The pages that have absolute positioning of the text appear correctly on the screen, but are shifted to the right about 4 cm when printed.In fact, this occurred when I used the pre tag and when I changed the code to position absolute. I have been reading about some problems with IE6 printing and came across this code, which I haven't tried.

@page { margin-left: 3cm; }

which might move the text to the left.Is there some code that will render the page on the paper as it is on the screen?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...