Kyle, Thanks for the tip. I did what you suggested, at least to my best ability ;-)
IE8, FF3, Opera are all fine with the changes. The html and css validate. Yet, Safari and Chrome display the flash movie all the way over to the right, almost as if they don't recognize the DIV. Any thoughts? Larry On Sep 18, 3:34 pm, "Getify Solutions, Inc." <[email protected]> wrote: > 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 -- 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 -~----------~----~----~----~------~----~------~--~---
