css - How can I get an embedded video to float left in IE7? -


How do I get embedded video to float left in IE7? The following code works great in Firefox and wraps the text around the divisor and the video, but sits under the text div / video in IE 7.

  & lt; Object height = "264" width = "320" style = "float: left; margin: 5px;" & Gt; Ultimate name = "wmode" value = "transparent" & gt; Ultimate name = "Allow full screen" value = "true" /> gt; & Lt; Embed type = "application / x-shockwave-flash" src = "http://somevideo.com/" Allow FullScreen = "true" allowScriptAccess = "always" height = "264" wmode = "transparent" width = "320 "& Gt; & Lt; / Embed & gt; & Lt; / Object & gt; & Lt; P & gt; Advertisements can be used for advertisement or crop for any type of advertisement. Any is not willing to sell to sell Donik Orner Insentmatm Srs Ijet Fringilla brochures and Florida Cross Lorem information about Morbi Cronder to provide information about the texts, it is a name that Fusibs add Enk. & Lt; / P & gt;  

IE only uses the embed tag, it ignores the object tag.

Put it inside a div element, specify the same size for it, and instead set float and margin on the div.

Alternatively, add style with both the object and embed tags, but it probably did not work properly if some browsers used by both styles, giving you double the margin.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -