Forum Moderators: not2easy

Message Too Old, No Replies

print style sheet behaving incomprehensibly

print styles

         

CharlesA

10:06 am on Apr 20, 2006 (gmt 0)

10+ Year Member



Hi folks, I'm using IE6 (in an Asp.net project) and I'm trying to create some print styles.

i've added a reference to a style sheet and the media="print" attribute. The style sheet is having effects, as I can hide nav items and add borders etc...

but I cannot no matter what I do, change the background color of anything, nor the foreground color.
I have a black and white printer, but surely if I want black headers with white text at the top of a table I should be able to do this, no?

also I read that you could make the print preview mode go into Landscape, but I haven't managed to do this

<style type="text/css" media="print">
@page { size: landscape; }
</style>

that doesn't have any effect at all, the page is still landscape.

Regards and thanks in advance,
CharlesA

coopersita

7:13 pm on Apr 20, 2006 (gmt 0)

10+ Year Member



You have to set up your printing preferences in the browser to print backgrounds. By default most browsers don't print backrounds.