I am in the process of designing a series of Bootstrap columns to replicate the layout of a website I have been provided with.
https://i.sstatic.net/hVuq1.png
These columns feature a blue border with a particularly thick border at the bottom. However, using a border can impact the dimensions and available space, so I attempted to create a nested div within it and utilize background-color
with width:100%
, but this approach did not yield the desired results.
Is there a more effective method for achieving this layout?
Thank you.
.featuredCatalog {
border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border: 5px solid #00AEF0;
}
.shopTab {
background-color: #00AEF0;
width: 100%;
min-height: 100%;
margin: 0;
}
<div class="row">
<div class="col-xs-6 col-sm-4 col-lg-2 featuredCatalog">
<img class="img-responsive" src="https://placehold.it/191x131">
<div class="shopTab">
<h4>Shop Now</h4>
</div>
</div>
<div class="col-xs-6 col-sm-4 col-lg-2 featuredCatalog">
<img class="img-responsive" src="https://placehold.it/191x131">
<h4>Shop Now</h4>
</div>
<div class="col-xs-6 col-sm-4 col-lg-2 featuredCatalog">
<img class="img-responsive" src="https://placehold.it/191x131">
<h4>Shop Now</h4>
</div>
<div class="col-xs-6 col-sm-4 col-lg-2 featuredCatalog">
<img class="img-responsive" src="https://placehold.it/191x131">
<h4>Shop Now</h4>
</div>
<div class="col-xs-6 col-sm-4 col-lg-2 featuredCatalog">
<img class="img-responsive" src="https://placehold.it/191x131">
<h4>Shop Now</h4>
</div>
</div>