Use a unique ID for swfobject purposes, but use classes for CSS purposes.
So:
<style> .my_swfs { ...} </style>
<div id="myobj" class="my_swfs"></div>
--Kyle
--------------------------------------------------
From: "Larry Irons" <[email protected]>
Sent: Friday, September 18, 2009 3:24 PM
To: "SWFObject" <[email protected]>
Subject: Re: My first attempt to use SWFObject
>
> Hi Sam,
>
> Thanks for the reply. I think my point wasn't made clearly. When I
> apply an ID to the DIV in which the SWFObject code is located I get
> what you see at the following link,
>
> http://www.newpathstherapy.com/index2.html
>
> However, when I do not apply an ID to the DIV in which the SWFObject
> code is located I get what you see at the following link,
>
> http://www.newpathstherapy.com/index1.html
>
> I don't know how to style a DIV tag without giving it an ID.
>
> Maybe I'm just slow but the examples I've seen of static pages
> including SWOBject apply an ID to the DIV tag. Any ideas?
>
> Larry
>
> On Sep 18, 12:12 pm, Sam Sherlock <[email protected]> wrote:
>> Your issue now is due to css not swfobject. Briefly here is what I would
>> try
>> on the div wrapping your static swfobject instance add some css
>>
>> eg
>> margin: 3.3em auto; clear: left; width: 325px;
>>
>> and remove the float: left from the #header
>>
>> and p { text-align: center }
>>
>> also you have an extra closing div (not that is causing any jip)
>>
>> bear in mind that the above is not tested across browsers; others may
>> well
>> do things
>> differently & I am not a css expert by any means
>>
>> hth - S
>>
>> 2009/9/18 Larry Irons <[email protected]>
>>
>>
>>
>> > can't position it properly on the
>> > page. I was giving the div an id and positioning it in main.css to-
>> > Hide quoted text -
>>
>> - Show quoted text -
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---