• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

print page problem with flash object

Hi, I am trying to use some css to define what is printed and what is not. For some reason my flash is still being printed. Please help if you can.
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jeff Janson Online Show Proofs</title>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/ -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
#flashcontent {
	height: 100%;
	font: 12px 'Trebuchet MS', arial, sans-serif;
	font-weight: bold;
	color: #999;
	line-height: 200px;
body {
	margin: 0;
	padding: 0;
	background-color: #303030;
	width: 100%;
#flash {
	display: block;
html {
	width: 100%;
@media print {
            .unprintable {
                  display: none;
            .printable {
                  display: block;
@media screen{
            .printable {
                  display: none;
<div id="flashcontent"> You need to upgrade your Flash Player !</div>
<div class="unprintable">
<script type="text/javascript">
		// <![CDATA[
		var so = new SWFObject("Gallery.v.2.swf", "flash", "100%", "100%", "8", "#303030");
		so.addVariable("xml", "data.xml");
		// ]]>
<div class="printable">
I want this printed

Open in new window

1 Solution
zYou seem to be writing the flash object into  the div 'flashcontent' which does not have the class
pertrai1Author Commented:
I was able to create a css for print only where the whole body was hidden. Thanks anyways.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now