Flash object in css

In Programming: How do I insert a Flash object into a .css class, and then reference it from HTML code. Is it even Possible?

Liked this question? Tell your friends about it

Best Answer

A Flash movie is inserted into an HTML page with the <object> tag (and until its use was deprecated, the <embed> tag). So, you could make a CSS style rule for all object elements on the page:

object { /* style properties */ }

Or, you could give your Flash object element a particular id or class and then select for those in the CSS. For example:

In the HTML:
<object class='FlashMovie' id='myMovie'>[Flash movie parameters]</object>

In the CSS:
object.FlashMovie { /* style properties */ }
or
object#myMovie { /* style properties */ }

• <a href="http://premasagar.com/" rel="nofollow">Premasagar.com</a><a href="http://premasagar.com/" rel="nofollow"> </a> • <a href="http://dharmafly.com/" rel="nofollow">Dharmafly</a>

All Answers

Thank you,

That Works great

Related Questions

Other people asked questions on similar topics, check out the answers they received:

Asked: PSD to CSS Software?

Is there any reliable software that can take site layout from PSD file and slice it using HTML/CSS to a full blown working web site?

Asked: Using html/css with aol mail

how can i send email that presents html/css as infomration with aol?
Staff

Asked: HTML/CSS standard for specifying copyright ...

Is there a standard or common convention for including an attribution to the copyright owner on an image in HTML? (See the blog post for an explanantion of why rel=license is not the solution I am ...