I'm building a website, and for the first time i am using the twitter bootstrap.
I'm trying to align my menu to the bottom of my div. But for some reason i can't figure out how to do it.
I did some research and tried using the box-align property. but that didnt work.
This is my code:
<div class="row">
<div class="col-md-4">
<img class="img-responsive" src="img/logo.png" >
</div>
<div class="col-md-8">
<ul class="nav nav-tabs">
<li class="active"><a href="#"><span class="glyphicon glyphicon-home" style="color:#6d92a2"></span> Home</a></li>
<li><a href="#"><span class="glyphicon glyphicon-check" style="color:#6d92a2"></span> Missie en Visie</a></li>
<li><a href="#"><span class="glyphicon glyphicon-calendar" style="color:#6d92a2"></span> Activiteiten</a></li>
<li><a href="#"><span class="glyphicon glyphicon-user" style="color:#6d92a2"></span> Lidmaatschap</a></li>
<li><a href="#"><span class="glyphicon glyphicon-play-circle" style="color:#6d92a2"></span> Videozone</a></li>
<li><a href="#"><span class="glyphicon glyphicon-map-marker" style="color:#6d92a2"></span> Contact</a></li>
</ul>
</div> <!-- nav tabs -->
</div> <!-- row -->
Any advice?
EDIT: It seems I didn't specify my question enough, my bad. I'm not using the CDNs at the moment, the menu itself doesnt give any problems. As you can see in: link , the nav comes at the top of the div, but i want it aligned at the bottom of the div.
You have to give the parent element a specific height. I would recommend doing this by adding an extra class, e.g. extraClass
, to your <div class="col-md-8">
like this:
<div class="row">
<div class="col-md-4">
<img class="img-responsive" src="img/logo.png" >
</div>
<div class="col-md-8 extraClass">
<ul class="nav nav-tabs">
<li class="active"><a href="#"><span class="glyphicon glyphicon-home" style="color:#6d92a2"></span> Home</a></li>
<li><a href="#"><span class="glyphicon glyphicon-check" style="color:#6d92a2"></span> Missie en Visie</a></li>
<li><a href="#"><span class="glyphicon glyphicon-calendar" style="color:#6d92a2"></span> Activiteiten</a></li>
<li><a href="#"><span class="glyphicon glyphicon-user" style="color:#6d92a2"></span> Lidmaatschap</a></li>
<li><a href="#"><span class="glyphicon glyphicon-play-circle" style="color:#6d92a2"></span> Videozone</a></li>
<li><a href="#"><span class="glyphicon glyphicon-map-marker" style="color:#6d92a2"></span> Contact</a></li>
</ul>
</div> <!-- nav tabs -->
</div> <!-- row -->
And the use this CSS:
.extraClass {
height: 122px;
position: relative;
}
.extraClass ul {
position: absolute;
bottom: 0;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With