javascript - Typical IE issues when trying to align videos - please advise -


can please tell me why these 3 items, (video+image+video) align in every browser accept ie?

in ie stack on top of each other.

thank in advance.

<div style="float: left;"><iframe width="100" height="50" src="http://www.youtube.com/embed/lhng7a88no8?rel=0" frameborder="0"></iframe></div> <div style="float: left;"><img style="display: block; vertical-align: middle; margin-left: auto; margin-right: auto;" title="example dataset smartscan" src="http://smartfibres.com/pictures/example_data_set.jpg" alt="example dataset smartscan" width="200" height="100" /> <style="text-align: right;"></div> <div style="padding-top: 10px, float: left;"><iframe width="100" height="50" src="http://www.youtube.com/embed/2louwac63pm?rel=0" frameborder="0"></iframe></div> 

you using float property, haven't cleared floats. potentially causing these issues. i've updated code in following fiddle , have taken out inline styles , put them in stylesheet of sorts:

http://jsfiddle.net/efrsh/1/

is there no other css? in cases this, if 3 divs width + padding larger containing div, happen. since have no other code, can assume float not cleared.

further reading can found here


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -