Jump to content

Archived

This topic is now archived and is closed to further replies.

AndyB

Opera oddity

Recommended Posts

I'm using CSS to show an element only in the printed page version.  Everything works as expected with IE, FF, and Netscape Moz.  Opera refuses to dispay the header image in print preview or hard copy when I use the following:

HTML code
[code]<div class="print_only"><img src="images/header-picture-print.gif" width="290" height="80" alt=""/></div>[/code]

CSS screen
[code].print_only {
display: none;
}[/code]

CSS print
[code].print_only {
display: inline;
}[/code]

display: block has the same non-effect. How can I get the image to display in the print mode using Opera?

Share this post


Link to post
Share on other sites
This is pretty odd, but I think opera doesn't load the image for unknown reason. You can fix it by omitting the display:inline; all togather in the print style.
[code]
.print_only {}
[/code]
Let me know if this works.

Share this post


Link to post
Share on other sites
The print_only class works perfectly with text in Opera, so this is slightly baffling.

With the print_only class commented out in the CSS print file, all browsers except Opera show the image. 

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.