I've tried several posted solutions to get this to work, but can't seem to make it happen. What am I doing wrong here?
I want the IMG, P & BUTTON elements to be vertically centered in their divs beside each other [as opposed to stacked] as well as the row.
Here's what I have so far:
<div class="container rider">
<div class="row">
<div>
<div class="col-sm-4 col-xs-12 left">
<img src="/assets/images/tech-tips.png" />
<p>Lorem ipsum dolor sit amet, adipiscing elit.</p>
<button class="btn btn-default btn-small">go</button>
</div>
</div>
<div>
<div class="col-sm-4 col-xs-12 center">
<img src="/assets/images/tech-tips.png" />
<p>Lorem ipsum dolor sit amet, adipiscing elit.</p>
<button class="btn btn-default btn-small">go</button>
</div>
</div>
<div>
<div class="col-sm-4 col-xs-12 right">
<img src="/assets/images/tech-tips.png" />
<p>Lorem ipsum dolor sit amet, adipiscing elit.</p>
<button class="btn btn-default btn-small">go</button>
</div>
</div>
</div>
</div>
And the CSS overriding a stock Bootstrap 3 CSS.
.rider > .row , .rider > .row > div, .rider > .row > div > div {
vertical-align:middle;
}
.rider img, .rider p, .rider button {
display:inline-block;
}
.rider img {
float:left;
}
.rider p {
width: 140px;
margin: 0;
padding: 0;
}
.rider button {
float:right;
}
*note: the IMG, P & BUTTON tags should be beside one another in each column, not stacked.