My issue is that I want #text1
to display on the right side of #video1
, and #text2
to be positioned next to #video2
. However, currently #text2
is also appearing beside #video1
. Can someone please explain why this is happening and provide a solution to fix it?
<style>
#video1, #video2
{
float: left;
margin: 20px 20px 0 0;
}
</style>
<div id="video1">
<iframe src="http://player.vimeo.com/video/65706935" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
<div id="text1">
this is text1
</div>
<div id="video2">
<iframe src="http://player.vimeo.com/video/67739892" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
<div id="text2">
this is text2
</div>