I know this was asked many times in SO but I can't find the answer for my question. I used bootstrap with this one and tried to have a two six columns in a row. It works as expected but what I want to achieve is that I wanted to out a gap between them. To see what I mean you can check it here.
I don't want to override the bootstrap cols here. I wanted to use only the added class which is survey-extra
.
HTML
<div class="container">
<div class="row visit-redeem text-center">
<h5>Visit Site To Redeem</h5>
</div>
<div class="row">
<div class="col-xs-6 survey-extra">
<h5>FROM OUR SPONSORS</h5>
<span class="money-extra">$0.00</span>
</div>
<div class="col-xs-6 survey-extra">
<h5>FREEBIES</h5>
<span class="money-extra">$0.00</span>
</div>
</div>
</div>
CSS
.survey-extra {
background: #1e90ff;
color: #fff;
padding: 5px;
border-radius: 10px;
text-transform: uppercase;
}
.visit-redeem {
background: #56a4da;
margin-top: 5px;
margin-bottom: 6px;
color: #fff;
padding: 5px;
border-radius: 20px 20px 0 0;
text-transform: uppercase;
}
I also tried the CSS3 :nth-of-type() Selector
but no luck!
I wanted to do this using css only.