Opera, CSS and Printing

pmj7's picture

He has: 234 posts

Joined: Nov 2002

Hi

Can someone direct me to a web page that talks about how to get Opera to behave like other browsers when it comes to using a separate CSS file for printing? Basically, I'm changing the CSS definition for a large, colourful header to a smaller, black and white one for printing. Works fine in Explorer. Mozilla is nearly, but not quite there. Opera plain refuses to cooperate. I've tried including html/css code that's set to display: none and then change it to display: block in the print css, which works for plain text, but images just don't get loaded. Hmmm... maybe that's the trick? Do I have to pre-load images used in the print version before actually using them in Opera 7.5?

Thanks!

Peter

Touchup image processing applet
Pixel Development Web Design, Photography

s0da's picture

He has: 157 posts

Joined: Mar 2004

this is what i hate about css and browsers. i dunno if css is a curse or a miracle. hopefully, someone can help you out with this but here's a couple links.

Links:
http://www.quirksmode.org/css/contents.html
http://www.nic.fi/~tapio1/Teaching/JsTricks.php

pmj7's picture

He has: 234 posts

Joined: Nov 2002

Thanks, but those links don't seem to deal with the exact problem.

Experimenting I've found out that my guess is correct, you must have used/loaded images on a web page if you're going to print them in Opera. Currently, I'm seeing if I can use width=1 float and z-index to make it's use invisible, and avoid using JavaScript.

My feelings about client side JavaScript are the same as harsh language - they should both only be used as a means of last retort. Yes, a Peterism. Wink

Also, my testing indicates that backgrounds (images and color) are completely ignored.

Peter

Touchup image processing applet
Pixel Development Web Design, Photography

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.