1 reply [Last post]
Last seen: 16 years 25 weeks ago
Timezone: GMT-5
Joined: 2004-01-02
Posts: 32
Points: 0

I need to achieve min-width: 760px; in IE with a page I'm working on. I'm having some difficulties doing so. I have a code that works, but it isn't working on my embedded flash file. I've tried a few different things, i've applied the style to many different tags trying to achieve the effect. Maybe that's part of the problem, I dont know. Here's the code I am embedding for the flash:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="550" id="splash" align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="multimedia/splash.swf" />
<param name="quality" value="high" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#000000" />
<embed src="multimedia/splash.swf" quality="high" salign="lt" bgcolor="#000000" width="100%" height="550" name="splash" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Here is the css style I would like to apply:

style="min-width: 760px; width: 100%; width:expression(document.body.clientWidth < 760? "760px": "auto" ) !important;"

The site I'm working with is Prince Cummings :: Voice Over Artist. I'm trying to achieve a 100% width but give a min-width of 760px.

At the least, I'm looking for information on how to apply a style to an embedded swf file as opposed to putting the info in as html.

Articles and personal work

Sydney, Australia
Last seen: 19 years 12 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

CSS on the Embedded SWF File (Min-Width Hack)

Not sure I understand what problem is actually occurring, but -

I do not think it is possible to use CSS styles against the actual swf file only the html page that contains the file.

If you open the swf directly and not a html page containing the swf file, then you give control of the new window over to the swf file and windows.

Hope that helps


The only way to learn is to do it yourself