Forum Moderators: not2easy

Message Too Old, No Replies

Effect of max-width on print styling using IE6

Javascript work round doesn't help printing

         

kiwibrit

7:53 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



Just found out why the text wasn't wrapping when using my print style sheet in IE6 (it was fine from Firefox).

I had a wrapping div with a max-width of 955px - not accepted by IE6, so I used Javascript to overcome that, and still validate - unlike what would happen if I used a proprietary property.

For accessibility I try not to use PDF for printing - so I used a print style sheet. Great. Except the text would not wrap for printing, when using IE6. Until I got rid of max-width.

Currently I have re-specified the wrapping div width as width: 955px to overcome this. As this site is primariy for commercial users who will almost all have reasonable definition browsers, this may be acceptable. But I may have to go back to my old standard width of 760 px. Annoying.

Robin_reala

9:55 pm on Oct 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not write the max-width JS as a 'CSS' expression rule and target it to media=screen?

kiwibrit

9:10 am on Nov 1, 2005 (gmt 0)

10+ Year Member



Good thought. I'll have a look at that. Thanks.