I'm having trouble aligning three divs side by side. When I try to add borders and a small gap between each div, the third div ends up on a new line. Is there a way to automatically resize the divs so they fit together?
HTML:
<div class="trendingContainer">
<div class="col-lg-4 trendingBox">
<div class="block-title"><h3>Trending</h3> </div>
123
</div>
<div class="col-lg-4 trendingBox hidden-sm hidden-xs">
<div class="block-title"><h3>Trending</h3> </div>
123
</div>
<div class="col-lg-4 trendingBox hidden-sm hidden-xs">
<div class="block-title"><h3>Trending</h3> </div>
123
</div>
</div>
CSS:
.trendingContainer {
margin: 0 auto;
}
.trendingBox {
border: 1px solid #e5e5e5;
background: #fff;
margin: 0 2px 0 0;
}