Although strictly speaking unless you're able to implement the flash embed
w/o SWFObject and the borders come across fine using similar styling, this
is more a generic css question, not an SWFObject question.  That said, I do
question the fact that you're not explicitly id'ing the container div of
your flash object, which makes me think that the code generator might be
helpful.

V

On Sun, Jul 5, 2009 at 1:31 AM, Vincent Polite <[email protected]
> wrote:

> Hi.  I typically use the dynamic publishing variant of SWFObject; I'm not
> sure how you generated your code, but I'm presuming it's the static
> publishing method with the inclusion of the object tags and what not.
>
> Regardless, for anyone trying to do a SWF publication, I would highly
> recommend trying the content generation wizard at:
>
> http://code.google.com/p/swfobject/wiki/generator
>
> OK, public service announcement done.  As far as css goes, instead of
> styling the object itself, I would suggest that you style the div
> surrounding the object and see where that gets you?  I've never tried
> styling object tags directly.
>
> Post back if that doesn't get you anywhere.
>
> Vincent
>
>
> On Sun, Jul 5, 2009 at 1:24 AM, digitalecartoons <[email protected]>wrote:
>
>>
>> I'm using 'swfobject' to embed my swf file. Now I want to have that
>> swf object centered horizontally in the browser window, which I
>> managed to do. But I also want to put a border around the swf object.
>> I used the css in below html code for that. In Safari (mac) it
>> worked , but in Firefox 3 I get only a small bottom part of the
>> border. Like this image.
>>
>> [IMG]http://i39.tinypic.com/4kyx6p.jpg[/IMG]<http://i39.tinypic.com/4kyx6p.jpg%5B/IMG%5D>
>>
>> What do I have to do to get the border completely around the swf
>> object using css?
>>
>> [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
>> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
>> <head>
>> <title></title>
>> <meta http-equiv="Content-Type" content="text/html;
>> charset=iso-8859-1" />
>> <script type="text/javascript" src="swfobjects/swfobject.js"></script>
>> <script type="text/javascript">
>>                        swfobject.registerObject("myFlashContent",
>> "9.0.0");
>>                </script>
>> <style type="text/css">
>> body {
>>        margin:0;
>>        text-align:center;
>> }
>> div#content {
>>        text-align:left;
>> }
>> object#myFlashContent {
>>        display:inline;
>>        border: medium solid #000000;
>> }
>> </style>
>> </head>
>> <body>
>> <div>
>>  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>> width="720" height="576"   id="myFlashContent">
>>    <param name="movie" value="flash/baddeling.swf" />
>>    <!--[if !IE]>-->
>>    <object type="application/x-shockwave-flash" data="flash/
>> baddeling.swf" width="720" height="576">
>>      <!--<![endif]-->
>>    <a href="http://www.adobe.com/go/getflashplayer";> <img src="http://
>> www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
>> alt="Get Adobe Flash player" /> </a>
>>    <!--[if !IE]>-->
>>    </object>
>>    <!--<![endif]-->
>>  </object>
>> </div>
>> </div>
>> </div>
>> </body>
>> </html>
>> [/CODE]
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to