I have two Twitter Bootstrap 3 containers. The first container has a simple image inside it, the second one contains some text loaded from The Loop. I would like the second container to overlap the first one a little bit.
I tried setting a negative margin-top for the second container and a negative margin-bottom for the first one. It works, as for moving the text, but background-color of the second container just doesn't overlap the image. Only text does that.
It looks as if the second container's background-color disappeared under the image from the first container.
Could you please help me with that? I want the background-color of the second container to overlap the first container's image. Just as it is already done with text.
HTML:
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12 singlePostCoverContainer">
            <?php the_post_thumbnail('full', array('class' => 'center-block singlePostCover')); ?>
        </div>
    </div>
</div>
<div class="container singlePost">
    <div class="row titleRow">
        <div class="col-sm-3 col-sm-push-9 col-xs-12">
            <p>TEST</p>
        </div>          
        <div class="col-sm-9 col-sm-pull-3 col-xs-12 post">
            <span class="catDescription">XXX</span>
            <h4><?php the_title(); ?></h4>
        </div>
    </div>
</div>
LESS (it is being compiled to CSS, shouldn't be that much of a problem to read for people who know CSS):
div.singlePostCoverContainer {
    img {
        margin-bottom:-200px;
    }
}
.singlePost {
    background-color:white !important;
}
 
     
    