AndyB Posted July 28, 2006 Share Posted July 28, 2006 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? Quote Link to comment Share on other sites More sharing options...
nogray Posted July 28, 2006 Share Posted July 28, 2006 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. Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 28, 2006 Author Share Posted July 28, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.