My attempts to remove the border-right for the last column and border-bottom from the last row of bootstrap columns using nth-child elements have been unsuccessful. I have provided the js fiddle code below:
.col-xs-3 p:nth-child(-n+3) {
border-bottom: 1px solid #ff0000;
}
.col-xs-3 p:nth-child(3n+1) {
border-right: 1px solid #ff0000;
}
.col-xs-3 {
padding: 0
}
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-xs-3">
<p>Stuff that fills this column</p>
</div>
... (additional rows/columns)
</div>
</div>
I am looking for a solution to remove the borders as shown in this screenshot: . Any suggestions?