Re: [WSG] (Opera) CSS print style problem with image

2006-03-13 Thread 郑玉萍


On Mar 12, 2006, at 8:56 PM, Philippe Wittenbergh wrote:



A solution is to move your image of screen for screen display (like  
img {position:absolute; left: -1px}) instead of using  
{display:none}.

I once posted an article about this:



Philippe, thank you so much for the cure. The image prints now. It's  
been over two years since you wrote the article, so Opera isn't  
considered this a bug?


Greatly appreciated!

tee


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] (Opera) CSS print style problem with image

2006-03-12 Thread Philippe Wittenbergh


On Mar 13, 2006, at 1:26 PM, 郑玉萍 wrote:

I have spent many hours tweaking my CSS print style sheet and on  
google too to try to find out what triggers the problem that the  
header image link is broken in Opera. I found no answer and is  
hoping someone here has a remedy for me.


The problem is rather specific - I have a header image inserted in  
html page with display none in my media style sheet, and the reason  
for this is because client wants different header image to be seen  
on printing, therefore having the header image places in the header  
as background image is not a viable solution.


When set to {display:none} in the screen style sheet, Opera doesn't  
download the image. But once you try to print the image, Opera  
doesn't try to fetch that one image, it only relies on what is in  
your cache. Safari used to do the same, but that is fixed in version  
1.3/2.0.


A solution is to move your image of screen for screen display (like  
img {position:absolute; left: -1px}) instead of using  
{display:none}.

I once posted an article about this:


Philippe
---
Philippe Wittenbergh




**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



[WSG] (Opera) CSS print style problem with image

2006-03-12 Thread 郑玉萍

Greetings,

I have spent many hours tweaking my CSS print style sheet and on  
google too to try to find out what triggers the problem that the  
header image link is broken in Opera. I found no answer and is hoping  
someone here has a remedy for me.


The problem is rather specific - I have a header image inserted in  
html page with display none in my media style sheet, and the reason  
for this is because client wants different header image to be seen on  
printing, therefore having the header image places in the header as  
background image is not a viable solution.


The page:
http://avanimedia.com/printmedia/pub_LANline.html

In my html






Media style sheet:
#headerPrint {display: none;}

Print style sheet
#headerPrint {
height: 130px;
width: 760px;
}

In the above page, there is a publication cover image and it's  
showing up from Opera printing, so I am gussing it is to do with
#headerPrint {display: none;} in the media sheet that maybe a bug of  
Opera (?).


The header image prints fine in IE, Safari and Gecko browsers.

Regards,

tee
lotus seeds design


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**