# Using swf as CSS background

**URL:** <https://forum.kirupa.com/t/using-swf-as-css-background/241391>\
**Category:** Uncategorized\
**Created:** [October 12, 2007, 10:33pm UTC](https://forum.kirupa.com/t/using-swf-as-css-background/241391 "2007-10-12T22:33:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StigC](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@StigC](https://forum.kirupa.com/u/StigC)\
**Post date:** [October 12, 2007, 10:33pm UTC](https://forum.kirupa.com/t/using-swf-as-css-background/241391/1 "2007-10-12T22:33:22Z")

</div>

Hey All.

I’m tying to build a site that has a flash background, but html/css as the ‘foreground’/content… I have no problem with the flash part of it - it’s done, that’s why I’m posting it here.

In my elated state over this crazy idea (in my head at least!) I simply thought I could add the swf instead of an image in the CSS body tag.

```auto
body {
background-image:url(background.swf);
}

```

(This is just an example)

Right, well… As you probably know, it didn’t work…  
Adding the whole \<object id-thing\> that flash publishes in the html file, didnt help either…

And I’m beginning to wonder, if it’s even possible. IS there any way to load a Flash swf file as your background in a CSS style sheet?

If there were, I guess more people would be doing it??

Thanks guys, I really hope you can help me with this.  
Stig
