There is an "place order" link on the web page, which I want to center both horizontally and vertically. I managed to center it horizontally, but not vertically. I'm using Twitter Bootstrap. This is what it looks like now and the red arrow shows where I'd like to put it:
The HTML:
<div class="container">
<div class="row">
<div class="col-md-8">
<h2 class="specs text-center">specs</h2>
<p class="text-center"> LENGTH - 1760mm<br />
TIP WIDTH - 136mm<br />
WAIST WIDTH - 112mm<br />
TAIL WIDTH - 126mm<br />
TIP LENGTH - 300mm<br />
TAIL LENGTH - 200mm<br />
CAMBER - 4MM<br />
TURN RADIUS - 23mtrs<br />
</p>
</div>
<!--end col-md-8-->
<div class="col-md-4 text-center">
<h2 class="text-center order"><a href="#">place order</a></h2>
</div>
<!--end col-md-4-->
</div>
<!--end row-->
</div>
<!--end container-->
The CSS:
#products .order
{
background-color: #392e2e;
padding: 15px;
display: inline-block;
vertical-align: middle;
}
#products .order a
{
color: #ffffff;
text-decoration: none;
}
h2.order
{
display: block;
text-align: center;
}
And here's a link to the project as well, scroll to the very bottom of the page.
Thank you for your help.
Here's one solution. Add this CSS to your stylesheet:
.row-same-height {
display: table;
width: 100%;
}
.col-md-height {
display: table-cell;
vertical-align:middle;
float: none !important;
}
Now, here's your html with the new divs applied.
<div class="container">
<div class="row">
<div class="row-same-height">
<div class="col-md-8">
<h2 class="specs text-center">specs</h2>
<p class="text-center"> LENGTH - 1760mm<br />
TIP WIDTH - 136mm<br />
WAIST WIDTH - 112mm<br />
TAIL WIDTH - 126mm<br />
TIP LENGTH - 300mm<br />
TAIL LENGTH - 200mm<br />
CAMBER - 4MM<br />
TURN RADIUS - 23mtrs<br />
</p>
</div>
<!--end col-md-8-->
<div class="col-md-height col-md-4 text-center">
<h2 class="text-center order"><a href="#">place order</a></h2>
</div>
<!--end col-md-4-->
</div>
</div>
<!--end row-->
</div>
<!--end container-->