I am currently working with a div element that will contain some content, and I need to replicate this div multiple times below. However, when I do so, the content ends up overlapping instead of stacking neatly.
Upon inspection, I noticed that the height of the container is not set. Shouldn't the height adjust automatically based on the content within the div? I'm a bit confused as I thought that was the case.
If you'd like to take a look, here's the link to my fiddle: http://jsfiddle.net/5jq52/2/
<div class="row">
<div class="col-md-5">
<div class="Mycontainer">
<div class="Item1">
<img src="http://placehold.it/150x150" class="Pic">
</div>
<div class="Item2">
<img src="http://placehold.it/150x150" class="Pic">
</div>
</div>
<div class="Mycontainer">
<div class="Item1">
<img src="http://placehold.it/150x150" class="Pic">
</div>
<div class="Item2">
<img src="http://placehold.it/150x150" class="Pic">
</div>
</div>
</div>
</div>
Thank you for taking the time to review and address this issue. ;)