[thelist] CSS & .swf

Dougal Campbell dougal at gunters.org
Mon Oct 20 15:24:01 CDT 2003


On Mon, 20 Oct 2003, Iain Godsman wrote:

> Is there a way to use a .swf file instead of an image in css?
>
> I'm trying to replace
> background-image: url(foo.gif);
>
> with
> background-image: url(foo.swf);
>
> I've checked my books and all the Web sites I'm aware of that might be of
> use, but can't find an answer as to why this isn't working for me.

Because Flash is not an internally handled media type -- it requires an
external plugin. GIF, JPG, and PNG are all rendered by the browser
itself. SWF is rendered by the Flash plugin. Likewise, you aren't going
to be able to use a QuickTime movie, a Photoshop PSD, or a PDF as a CSS
background-image.

-- 
Ernest MacDougal Campbell III, MCP+I, MCSE <dougal at gunters.org>
http://dougal.gunters.org/             http://spam.gunters.org/
  Web Design & Development:  http://www.mentalcollective.com/
       This message is guaranteed to be 100% eror frea!


More information about the thelist mailing list