PDA

View Full Version : Printing problem CSS



buffster
Feb 29th, 2008, 02:55 PM
Hey guys, hope someone can help.

Currently have a div with flash replacement code in it so that if the user doesn't not have flash it will display a static image.

I need to create a print.css which will allow me to hide the flash and only display the image filler as it is printing the flash - which obviously looks like a broken image.

Any help greatly appreciated!! I've been trying all morning and can't get it to work.

buff.

-----------

Here is my code:

<div id ="flash">
<img src="flash/filler_images/home_filler.jpg" width="313" height="409" />


<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("flash/home.swf", "sotester", "309", "404", "8", "#FFFFFF");
so.write("flash");
// ]]>
</script>
</div>



CSS----

#flash
{
float: left;
width: 323px;
padding-left: 35px;
}