Reputation: 353
I want to put some space between my videos which are in a inline-block I tried adding a margin-top but it doesn't seem to work? I also want to center my text on the right side of the video?
<div style="display: inline-block;">
<div class="vidJava">
<iframe style="clear:left; float: left" src="http://www.youtube.com/embed/videoseries?list=PLFE2CE09D83EE3E28"
width="560px" height="315px" frameborder="0"></iframe>
<p style="float: left;">lorem upsum unhgt nuhj ifn hh h</p>
</div>
<div class="vidJava" style="margin-top:50px;">
<iframe style="clear:left; float: left" src="http://www.youtube.com/embed/videoseries?list=PLFE2CE09D83EE3E28"
width="560px" height="315px" frameborder="0"></iframe>
<p style="float: left;">lorem upsum unhgt nuhj ifn hh h</p>
</div>
</div>
Upvotes: 0
Views: 77
Reputation: 516
<div style="display: inline-block;">
<table>
<tr>
<div class="vidJava">
<iframe style="clear:left; float: left" src="http://www.youtube.com/embed/videoseries?list=PLFE2CE09D83EE3E28"
width="560px" height="315px" frameborder="0"></iframe>
<p style="float: left;">lorem upsum unhgt nuhj ifn hh h</p>
</div>
</tr>
<tr>
(here you can add or leave it..depend on you)
</tr>
<tr>
<div class="vidJava" style="margin-top:50px;">
<iframe style="clear:left; float: left" src="http://www.youtube.com/embed/videoseries?list=PLFE2CE09D83EE3E28"
width="560px" height="315px" frameborder="0"></iframe>
<p style="float: left;">lorem upsum unhgt nuhj ifn hh h</p>
</div>
</tr>
<table>
</div>
and there you have a division, it's better to order by tables if you want to have your page ordered, is my way of develop, i hope i helped you!
Upvotes: 1
Reputation: 519
Since your iframes are floated to the left, the divs wrapping them are probably collapsed.
Add this to your css
.vidJava
{
overflow:auto;
}
Upvotes: 1