Any way to add a 3rd level menu item in AdminLTE sidebar? - html

I'm trying to find a way to have 3rd level menus in the side bar for my AdminLTE (V3.1.0) portal. Basically i'm trying to achieve something like below:
<ul id="sidebarTree" class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="true">
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-address-book"></i>
<p>
LEVEL 1 ITEM
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="#" class="nav-link" id="level2item">
<i class="nav-icon far fa-circle"></i>
<p>LEVEL 2 ITEM/p>
</a>
</li>
<a href="#" class="nav-link">
<i class="nav-icon fas fa-address-book"></i>
<p>
LEVEL 2 ITEM - EXPANDABLE
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="#" class="nav-link" id="level3item">
<i class="nav-icon far fa-circle"></i>
<p>LEVEL 3 ITEM/p>
</a>
</li>
</ul>
</ul>
</li>
Does anyone have any idea how this can be done? Or can this even be done at all?
See here (https://adminlte.io/docs/3.1//components/main-sidebar.html) for how the sidebar looks like in their docs.

Yes it is possible, all you have to do is add the class name nav-item to the parent li.
li > ul {
margin-left: 25px;
}
<link rel="stylesheet" href="https://adminlte.io/docs/3.1//assets/css/adminlte.min.css">
<ul id="sidebarTree" class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="true">
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-address-book"></i>
<p>
LEVEL 1 ITEM
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="#" class="nav-link" id="level2item">
<i class="nav-icon far fa-circle"></i>
<p>LEVEL 2 ITEM</p>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-address-book"></i>
<p>
LEVEL 2 ITEM - EXPANDABLE
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="#" class="nav-link" id="level3item">
<i class="nav-icon far fa-circle"></i>
<p>LEVEL 3 ITEM</p>
</a>
</li>
</ul>
</li>
</ul>
</li>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="/docs/3.1//assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/docs/3.1//assets/js/adminlte.min.js"></script>
Note: Stackoverflow restricts some imports here you can view it in my codepen below
Working example here: https://codepen.io/Ev1ltw1n/pen/rNzOoob

Related

Superposition of sidebar menu

I have a menu item, having submenus, which I want to put in another menu item. That is as multilevel sidebar items. But there is overlapping as seen on the following image. How can it be fixed?
I expect XYZ, A,B, and C. to shift toward bottom.
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<div id="theModal" class="modal fade text-center">
<div class="modal-dialog">
<div class="modal-content">
</div>
</div>
</div>
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-swatchbook"></i>
<p>
Servis
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="serviceorder" class="nav-link">
<i class="nav-icon far fa-image"></i>
<p>
Q
</p>
</a>
</li>
<li class="nav-item">
<a href="vehicleinservice" class="nav-link">
<i class="nav-icon fas fa-edit"></i>
<p>
W
</p>
</a>
</li>
<li class="nav-item">
<a href="servicehistory" class="nav-link">
<i class="nav-icon far fa-image"></i>
<p>
P
</p>
</a>
</li>
<li class="nav-item has-treeview">
<a href="vehicleinservice" class="nav-link" #onclick="OnVehicleInServiceClick">
<i class="nav-icon fas fa-edit"></i>
<p>
Has-a-submenu-list
<span class="badge badge-info right">#vehicleInServiceCount.VehicleInServiceCount</span>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="takingintoservice" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>111111111r</p>
<span class="badge badge-info right">#vehicleInServiceCount.TakingIntoServiceCount</span>
</a>
</li>
<li class="nav-item">
<a href="inmaintenance" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>222222222</p>
<span class="badge badge-info right">#vehicleInServiceCount.InMaintenanceCount</span>
</a>
</li>
<li class="nav-item">
<a href="waitingsparepart" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>3333333333</p>
<span class="badge badge-info right">#vehicleInServiceCount.WaitingSparePartCount</span>
</a>
</li>
<li class="nav-item">
<a href="readytodeliver" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>4444444</p>
<span class="badge badge-info right">#vehicleInServiceCount.ReadyToDeliveryCount</span>
</a>
</li>
<li class="nav-item">
<a href="delivered" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>55555555</p>
<span class="badge badge-info right">#vehicleInServiceCount.DeliveredCount</span>
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="nav-item">
<a href="customercard" class="nav-link">
<i class="nav-icon fas fa-user-tie"></i>
<p>
XYZ
</p>
</a>
</li>
<li class="nav-item has-treeview">
<a href="invoice" class="nav-link">
<i class="nav-icon fas fa-layer-group"></i>
<p>
A
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="stockcard" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>A1</p>
</a>
</li>
<li class="nav-item">
<a href="stocksale" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>A2</p>
</a>
</li>
<li class="nav-item">
<a href="stockpurchase" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>A3</p>
</a>
</li>
</ul>
</li>
<li class="nav-item has-treeview">
<a href="invoice" class="nav-link">
<i class="nav-icon fas fa-receipt"></i>
<p>
B
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="invoiceinbound" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>B1</p>
</a>
</li>
<li class="nav-item">
<a href="invoiceoutbound" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>B2</p>
</a>
</li>
</ul>
</li>
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-tools"></i>
<p>
C
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="safeaccount" class="nav-link">
<i class="fas fa-lira-sign nav-icon"></i>
<p>C1</p>
</a>
</li>
<li class="nav-item">
<a href="staff" class="nav-link">
<i class="fas fa-industry nav-icon"></i>
<p>C2</p>
</a>
</li>
<li class="nav-item">
<a href="users" class="nav-link">
<i class="fas fa-users nav-icon"></i>
<p>C3</p>
</a>
</li>
<li class="nav-item">
<a href="firminfo" class="nav-link">
<i class="fas fa-industry nav-icon"></i>
<p>C4</p>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
The overlap happens as the li elements you expand are taken out of the content/document flow, while the other lis A B C etc. are not.
Technically you are not expanding them rather show/hiding them.
Here is the MDN article:
Position
You either would've to "put them back" into the content flow by using position: relative, for example, or by shifting the other elements downwards with a padding-top. The second solution wouldn't be my first choice, though.

Icons are not visible in sidebar's list li class="nav-item"

I need to put icons before side menu's text. I tried many ways those are not working.
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul style="background-color:purple; padding-left: 20px;" class="navbar-nav mr-auto sidenav" id="navAccordion">
<li class="nav-item">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Property <span class="sr-only">(current)</span></a>
</li>
</ul>
</div>
I tried below combinations
<li class="nav-item">
<a href="#">
<li>Envelope icon: <span class="glyphicon glyphicon-envelope"></span></li>
</a>
</li>
<li class="nav-item">
<p> <i class="fa fa-home fa-fw"> </i> Home </p>
</li>
<li class="nav-item">
<a class="nav-link" href="#"> <i class="fa fa-home fa-fw"> </i> Home <span class="sr-only">(current)</span></a>
</li>
This is my output screen, where no icon available
I see you are trying to use FontAwesome icons. Have you got the appropriate fontawesome.css referenced in your <head>?
Ie;
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
Perhaps something like this should help? Let me know.
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul style="background-color:purple; padding-left: 20px;" class="navbar-nav mr-auto sidenav" id="navAccordion">
<li class="nav-item">
<div class="logo">
<img style="width:25px; height:25px" src="https://png.pngtree.com/png-clipart/20191120/original/pngtree-outline-home-icon-and-symbol-isolated-png-image_5045551.jpg">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<div class="logo">
<img style="width:25px; height:25px" src="https://img.icons8.com/all/500/property.png">
</div>
<a class="nav-link" href="#">Property <span class="sr-only">(current)</span></a>
</li>
</ul>
</div>
Edit: Just saw someone else answered your question. Glad you got the answer!

Bootstrap 4 navbar/menu keep entry visible when collapsed

This is a question similar to this one, but it is for Bootstrap 4.
I am not able to add right-justified entries on the BS4 navbar that stay visible both when collapsed and not collapsed. I spent one full afternoon without success.
This is my goal:
Here my current code (that works only when not collapsed):
<nav class="navbar navbar-light navbar-expand-xl border-bottom mainmenu sticky-top">
<a class="navbar-brand text-capitalize text-blur" href="/">
<img class="mr-1" src="/images/logo/favicon-32x32.png" alt="Logo">
<span class="">Portami in Pista</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#myTopMenu"
aria-controls="collapsableTopMen" aria-expanded="false" aria-label="[Menu]">
<span class="sr-only">[Menu]</span>
<span class="navbar-toggler-icon" title="[Menu]"/>
</button>
<div class="collapse navbar-collapse" id="collapsableTopMen">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/Schools/">
<i class="fa fa-motorcycle fa-rotate-315 text-danger" aria-hidden="true"/>
<span class="text-blur-danger">PiP Reparto Corse</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/Tracks/">
<i class="fa fa-flag-checkered text-primary" aria-hidden="true"/>
<span>Piste</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/Blog/le-guide-del-giovedi/">
<i class="fa fa-mortar-board text-primary" aria-hidden="true"/>
<span>Le guide del giovedì</span>
</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<!- START of section should be always visible -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownLang" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="famfamfam-flags it" title="Italiano"/>
<span class="d-inline d-xl-none">Italiano</span>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownLang">
<a class="dropdown-item" href="/AbpLocalization/ChangeCulture?cultureName=en&returnUrl=/">
<i class="famfamfam-flags gb" aria-hidden="true"/>
<span class="">English</span>
</a>
</div>
</li>
<!- END of section should be always visible -->
<li class="nav-item">
<a class="nav-link" href="/Account/Login"><i class="fa fa-sign-in"/> Log in</a>
</li>
</ul>
</div>
</nav>
Since you're using Bootstrap 4, this answer is more relevant to your question:
https://stackoverflow.com/a/41513784/171456 (see the last part)
The part that you always want to keep visible needs to be separate from any of the collapsible parts. Then use the order-* classes to position the items as desired:
Demo: https://codeply.com/p/ylDhhZtpiH
<nav class="navbar navbar-light navbar-expand-xl border-bottom mainmenu sticky-top justify-content-start">
<a class="navbar-brand text-capitalize text-blur" href="/">
<img class="mr-1" src="//placehold.it/32" alt="Logo">
<span class="">Portami in Pista</span>
</a>
<button class="navbar-toggler order-2 ml-1" type="button" data-toggle="collapse" data-target=".collapsable" aria-controls="collapsableTopMen" aria-expanded="false" aria-label="[Menu]">
<span class="sr-only">[Menu]</span>
<span class="navbar-toggler-icon" title="[Menu]"></span>
</button>
<!-- 1st collapse menu -->
<div class="collapse navbar-collapse collapsable flex-grow-0 flex-xl-grow-1 order-last" id="collapsableTopMen">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/Schools/">
<i class="fa fa-motorcycle fa-rotate-315 text-danger" aria-hidden="true"></i>
<span class="text-blur-danger">PiP Reparto Corse</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/Tracks/">
<i class="fa fa-flag-checkered text-primary" aria-hidden="true"></i>
<span>Piste</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/Blog/le-guide-del-giovedi/">
<i class="fa fa-mortar-board text-primary" aria-hidden="true"></i>
<span>Le guide del giovedì</span>
</a>
</li>
</ul>
</div>
<!-- always visible portion -->
<ul class="navbar-nav order-1 order-xl-last ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownLang" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-flag it" title="Italiano"></i>
<span class="d-inline d-xl-none">Italiano</span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownLang">
<a class="dropdown-item" href="#">
<i class="fas fa-flag-usa gb" aria-hidden="true"></i>
<span class="">English</span>
</a>
</div>
</li>
</ul>
<!-- 2nd collapse menu -->
<div class="collapse navbar-collapse collapsable flex-grow-0 order-last">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/Account/Login"><i class="fa fa-sign-in"></i> Log in</a>
</li>
</ul>
</div>
</nav>
https://codeply.com/p/ylDhhZtpiH
I did a small important fix to the good answer from Zim.
I fixed the "always visible" portion of the menu as he did not overlap the whole menu when it was collapsed.
Adding a custom .navbar-always-overlapped class, fixed it.
<nav class="navbar navbar-light navbar-expand-lg border-bottom mainmenu sticky-top justify-content-start">
<!-- same code from Zim here>
...
<!-- always visible portion. Note the 'navbar-always-overlapped' -->
<ul class="navbar-nav navbar-always-overlapped order-1 order-lg-last ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownLang" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-flag it" title="Italiano"></i>
<span class="d-inline d-lg-none">Italiano</span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownLang">
<a class="dropdown-item" href="#">
<i class="fas fa-flag-usa gb" aria-hidden="true"></i>
<span class="">English</span>
</a>
</div>
</li>
</ul>
<!-- 2nd collapse menu -->
<div class="collapse navbar-collapse collapsable flex-grow-0 order-last">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/Account/Login"><i class="fa fa-sign-in"></i> Log in</a>
</li>
</ul>
</div>
</nav>
and the code for .navbar-always-overlapped:
.navbar-always-overlapped .dropdown-menu {
position: absolute !important;
}
See https://codeply.com/p/9deLYTGblZ

Bootstrap 4 navbar - break / float right navbar

Is there a way to achieve the following result with Bootstrap 4 (with centered menu items in second row):
This was made with Bootstrap 3 but I cant get it to work with Bootstrap 4 (the right navbar (Upgrade, govel, ...) does not float, instead a scroll bar is added when there is not enough space).
My Bootstrap 4 code:
https://www.bootply.com/awN10dN1Ns
Any tips how to get the menu items float to a second row like on the screenshot above if there is not enough space for a one-line nav? How to center the menu items in the second row?
Link to Bootstrap 3 example is: https://www.lotsearch.de/
Please try below css.
#navbarSupportedContent {
text-align: center;
display: block !important;
}
#navbarSupportedContent ul.navbar-nav {
display: block !important;
}
#navbarSupportedContent ul.navbar-nav li {
display: inline-block;
}
Wrap the 2 rows in separate d-flex divs, and use w-100 to make them fill the width of the navbar. The use flex-column in the navbar to make the 2 divs stack vertically.
<nav class="navbar navbar-expand-md navbar-light flex-column" id="header">
<div class="w-100 d-flex">
<a href="/" class="navbar-brand">
<img src="/images/favicons/favicon_144x144.png" class="favicon-logo" alt="Logo">
</a>
<ul class="navbar-nav navbar-expand px-3 order-last">
<li class="nav-item">
<a class="nav-link text-nowrap nav-small-link" href="" title="Vorgemerkte Gebote auf Ihrer Bietliste">
<div class="icon-wrapper">
<i class="fa fa-gavel fa-fw"></i>
<span class="badge badge-orange" id="bidlist-counter">0</span>
</div>
</a>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap nav-small-link" href="" title="Merkzettel">
<div class="icon-wrapper">
<i class="fa fa-bookmark fa-fw"></i>
<span class="badge badge-orange" id="bookmark-counter">14</span>
</div>
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link text-nowrap dropdown-toggle" href="#" id="navbarDropdownLanguage" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="flag-icon flag-icon-de"></span>
</a>
<div class="dropdown-menu dropdown-langauge dropdown-menu-right" aria-labelledby="navbarDropdownLanguage">
<a class="dropdown-item text-nowrap" href="" hreflang="en">
<span class="flag-icon flag-icon-gb"></span> GB </a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-nowrap" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user fa-fw"></i>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="/user">
<i class="fa fa-user fa-fw"></i> Mein Account </a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/bids/management/bidlist">
<i class="fa fa-user fa-fw"></i> Bietliste <span class="badge badge-orange" id="bidlist-counter">0</span>
</a>
<a class="dropdown-item" href="/bids/management/manual-bidlist">
<i class="fa fa-user fa-fw"></i> PDF-Gebote </a>
<a class="dropdown-item" href="/bids/management/placed-bidlist">
<i class="fa fa-user fa-fw"></i> Abgegebene Gebote </a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/static/contact">
<i class="fa fa-envelope fa-fw"></i> Kontakt aufnehmen </a>
<a class="dropdown-item" href="/static/faq">
<i class="fa fa-graduation-cap fa-fw"></i> FAQ </a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/user/logout">
<i class="fa fa-sign-out fa-fw"></i> Logout </a>
</div>
</li>
</ul>
<button class="navbar-toggler order-last" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav ml-auto">
<li>
<a class="nav-link text-nowrap orange" href="">
<i class="fa fa-arrow-circle-up"></i> Upgrade </a>
</li>
</ul>
</div>
<div class="navbar-collapse collapse w-100 justify-content-md-center justify-content-start" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-nowrap" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-fw fa-search"></i> Suche <span class="caret"></span>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="/">
<i class="fa fa-lightbulb-o fa-fw"></i> Suche (Aktuelle Auktionen) </a>
<a class="dropdown-item" href="/archive">
<i class="fa fa-archive fa-fw"></i> Suche (Archiv) </a>
</div>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap" href="/auction-catalogues">
<i class="fa fa-book fa-fw"></i> Kataloge </a>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap" href="/category"><i class="fa fa-list-alt fa-fw"></i> Kategorien </a>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap" href="/alert"><i class="fa fa-bell fa-fw"></i> Suchaufträge </a>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap" href="/artist"><i class="fa fa-bar-chart fa-fw"></i> Künstler / Analysen </a>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap" href="/blog"><i class="fa fa-newspaper-o fa-fw"></i> Blog </a>
</li>
</ul>
</div>
</nav>
https://www.codeply.com/go/TyYjq0u7B0
Note: The hidden-* classes don't exist in Bootstrap 4.
Also see: How can I have Brand and Navbar on separate lines?
you can change this:
#media (min-width: 768px) {
.navbar-expand-md {
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
}
}
by this:
#media (min-width: 768px) {
.navbar-expand-md {
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
}
this is what you expect?
Add this for ordering your nav:
#media (min-width: 768px) {
.navbar-expand-md .navbar-nav{
order:0
}
}

Twitter Bootstrap: Align nav-tabs to bottom of div

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"><span class="glyphicon glyphicon-home" style="color:#6d92a2"></span> Home</li>
<li><span class="glyphicon glyphicon-check" style="color:#6d92a2"></span> Missie en Visie</li>
<li><span class="glyphicon glyphicon-calendar" style="color:#6d92a2"></span> Activiteiten</li>
<li><span class="glyphicon glyphicon-user" style="color:#6d92a2"></span> Lidmaatschap</li>
<li><span class="glyphicon glyphicon-play-circle" style="color:#6d92a2"></span> Videozone</li>
<li><span class="glyphicon glyphicon-map-marker" style="color:#6d92a2"></span> Contact</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"><span class="glyphicon glyphicon-home" style="color:#6d92a2"></span> Home</li>
<li><span class="glyphicon glyphicon-check" style="color:#6d92a2"></span> Missie en Visie</li>
<li><span class="glyphicon glyphicon-calendar" style="color:#6d92a2"></span> Activiteiten</li>
<li><span class="glyphicon glyphicon-user" style="color:#6d92a2"></span> Lidmaatschap</li>
<li><span class="glyphicon glyphicon-play-circle" style="color:#6d92a2"></span> Videozone</li>
<li><span class="glyphicon glyphicon-map-marker" style="color:#6d92a2"></span> Contact</li>
</ul>
</div> <!-- nav tabs -->
</div> <!-- row -->
And the use this CSS:
.extraClass {
height: 122px;
position: relative;
}
.extraClass ul {
position: absolute;
bottom: 0;
}
In Bootstrap 4 you can use d-flex and align-items-end of the new flexbox utilities and place your logo right inside a <li> of your Nav <ul>:
Example with left-side logo:
<ul class="nav nav-tabs d-flex align-items-end">
<li class="nav-item mr-auto">
<a class="navbar-brand" href="#">
<img src="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-logo.png?v=9c558ec15d8a"
width="283" alt="Logo - Stack Overflow">
</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Item 1 <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Item 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Item 3</a>
</li>
</ul>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
Example with right-side logo:
<ul class="nav nav-tabs d-flex align-items-end">
<li class="nav-item">
<a class="nav-link active" href="#">Item 1 <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Item 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Item 3</a>
</li>
<li class="nav-item ml-auto">
<a class="navbar-brand" href="#">
<img src="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-logo.png?v=9c558ec15d8a"
width="283" alt="Logo - Stack Overflow">
</a>
</li>
</ul>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
Try this
<ul class="nav nav-tabs navbar-bottom">