I'm currently attempting to incorporate Iframes within a 3-column grid.
HTML
<div id="blogPosts">
<div class="blogPost">
<iframe width="100%" src="https://www.youtube.com/embed/YqeW9_5kURI" frameborder="0" allowfullscreen=""></iframe>
<div class="title">Youtube Video</div>
<div class="time">11th May, 2015</div>
<div class="info">this is the best youtube video ever!</div>
</div>
...
</div>
CSS
#blogPosts {
-moz-column-count: 3;
-moz-column-gap: 10px;
-webkit-column-count: 3;
-webkit-column-gap: 10px;
column-count: 3;
column-gap: 10px;
width: 100%;
}
.blogPost {
display: inline-block;
margin-bottom: 20px;
width: 100%;
}
Current Display:
Desired Display:
The issue I'm facing is that the iframe seems to break out of the grid structure. You can take a look at my JsFiddle to see this happening. The first box behaves as expected, but the subsequent boxes to the right have the iframe escaping the layout.