Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@Media Print flash objects

Status
Not open for further replies.

dee2005

Programmer
Sep 11, 2005
29
GB
Hi

has anyone had problems with hiding flash objects using @media print. For IE,

I styled it up this way

@media print{
.flashholder{display:none}
}

so the flash is hidden and all you can see is the text which is below it. Firefox renders this fine but IE gives you a one blank page.

Has any anyone got any suggestions to solve this

cheers
 
yeah try still produces a blank page.

I am testing in both IE6 and IE7 browers and getting the same result.
 
yes in firefox it renders in the exact height of where the object would be.
 
oh ok when there is no flash object, then the text is visible
 
1) If flash is not installed when I print the page the text is visible on both IE(all versions) and firefox.

2) When flash is installed when I print the page the flash object printed out but with no text (this happens in IE all versions)

3)When flash is installed and I use the @media print....display:none; style. The page is blank when printed from IE (all versions), therefore not showing any text or flash object. Firefox is fine.

I am trying to hide the flash object and print just the text.

I hope this clears up what I am trying to do.
 
If I print from IE 7, I get a page with the speaker image at the top and nothing else.

What happens if you remove your IE style sheet altogether? i ask, as it is loaded after the print CSS, so could be overriding some stuff.

Personally, I'd break out your print CSS and load that last after all other CSS using:

Code:
<link ... media="print">

Hope this helps,
Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I tried your suggestions

the print style is in a file of its own and still producing the same result.

I have be unable to find any fixes on the web to help me solve this issue.

Its like the swf file is covering the rest of the content.

Dee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top