Jump to content


Photo

Opera oddity


  • Please log in to reply
2 replies to this topic

#1 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 July 2006 - 03:18 PM

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
<div class="print_only"><img src="images/header-picture-print.gif" width="290" height="80" alt=""/></div>

CSS screen
.print_only {
	display: none;
}

CSS print
.print_only {
	display: inline;
}

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

Legend has it that reading the manual never killed anyone.
My site

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 28 July 2006 - 04:40 PM

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.
.print_only {}
Let me know if this works.

NoGray.com


#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 July 2006 - 04:53 PM

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. 
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users