View Full Version : Adding swf to css

10-12-2007, 02:04 AM
I have a css based page with an image for a banner.
I have created an swf file to replace the banner that I can't get to show up on the page. This is the css section for the image banner now.

background:url(images/bannerbg3_13.gif) repeat-x;
border-bottom:3px solid #1553B9;

When I change the url line to match the swf it doesn't show. There is obviously more to it than that.

The line on the html page is
<div class="banner">

Where do I need to make the modifications and what kind?
Thanks in advance

10-12-2007, 04:06 AM
You can't set a flash file as a background image simply because well...its not an image. You will need to embed it into the document. Check out http://blog.deconcept.com/swfobject/

10-12-2007, 07:21 PM
Thanks for taking a look. Got it handled. Trial and Error.