I have 5 col-md-4
wrapped inside a container, which is wrapped inside a row, which is wrapped inside a <section>
element. Right now, I have 3 columns in first row and 2 in the second. What I am trying to do is center all the col-md-4
elements, so that the bottom 2 are not aligned to the left which is leaving a white space on the right. Here is my code:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<section id="home-features">
<div class="row">
<div class="container">
<div class="col-md-4">
<div style="height: 229px; background: url(images/feature-custom-home.jpg); background-size: cover;">
<a href="/custom-home/" class="service-link">
<h3>Custom Homes</h3>
</a>
</div>
</div>
<div class="col-md-4">
<div style="height: 229px; background: url(images/feature-home-renovations.jpg); background-size: cover;">
<a href="/home-renovation" class="service-link">
<h3>Home Renovations</h3>
</a>
</div>
</div>
<div class="col-md-4">
<div style="height: 229px; background: url(images/feature-luxury-features.jpg); background-size: cover;">
<a href="/luxury-features/" class="service-link">
<h3>Luxury Features</h3>
</a>
</div>
</div>
<div class="col-md-4">
<div style="height: 229px; background: url(images/feature-project-management.jpg); background-size: cover;">
<a href="/project-management/" class="service-link">
<h3>Project Management</h3>
</a>
</div>
</div>
<div class="col-md-4">
<div style="height: 229px; background: url(images/feature-condo-renovation.jpg); background-size: cover;">
<a href="/condo-renovations/" class="service-link">
<h3>Condo Renovations</h3>
</a>
</div>
</div>
</div>
</div>
</section>