Is it possible to achieve this?
By slightly modifying this codes?
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6"></div>
<div class="col-md-3"></div>
</div>
EDITED
I can achieve this using below. I'm wondering if there's any other simple way.
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-9">
<div class="row">
<div class="col-md-8"></div>
<div class="col-md-4"></div>
</div>
<div class="row">
<div class="col-md-8"></div>
<div class="col-md-4"></div>
</div>
</div>
</div>
tarako
You may try it by
just add a single div in start and add its height plus hide the lower div
<div class="row">
<div style="height:10px(according to you)" class="col-md-3"></div>
<div class="col-md-6"></div>
<div class="col-md-3"></div>
</div>
Hi you can try with this code
<div class="container-fluid">
<div class="row">
<nav class="col-sm-3 col-md-2 d-none d-sm-block bg-light sidebar">
<ul class="nav nav-pills flex-column">
<li class="nav-item">
<a class="nav-link active" href="#">Overview <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Reports</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Analytics</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Export</a>
</li>
</ul>
<ul class="nav nav-pills flex-column">
<li class="nav-item">
<a class="nav-link" href="#">Nav item</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Nav item again</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">One more nav</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Another nav item</a>
</li>
</ul>
<ul class="nav nav-pills flex-column">
<li class="nav-item">
<a class="nav-link" href="#">Nav item again</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">One more nav</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Another nav item</a>
</li>
</ul>
</nav>
<main class="col-sm-9 ml-sm-auto col-md-10 pt-3" role="main">
<h1>Dashboard</h1>
<section class="row text-center placeholders">
<div class="col-6 col-sm-3 placeholder">
<img src="data:image/gif;base64,R0lGODlhAQABAIABAAJ12AAAACwAAAAAAQABAAACAkQBADs=" width="200" height="200" class="img-fluid rounded-circle" alt="Generic placeholder thumbnail">
<h4>Label</h4>
<div class="text-muted">Something else</div>
</div>
<div class="col-6 col-sm-3 placeholder">
<img src="data:image/gif;base64,R0lGODlhAQABAIABAADcgwAAACwAAAAAAQABAAACAkQBADs=" width="200" height="200" class="img-fluid rounded-circle" alt="Generic placeholder thumbnail">
<h4>Label</h4>
<span class="text-muted">Something else</span>
</div>
<div class="col-6 col-sm-3 placeholder">
<img src="data:image/gif;base64,R0lGODlhAQABAIABAAJ12AAAACwAAAAAAQABAAACAkQBADs=" width="200" height="200" class="img-fluid rounded-circle" alt="Generic placeholder thumbnail">
<h4>Label</h4>
<span class="text-muted">Something else</span>
</div>
<div class="col-6 col-sm-3 placeholder">
<img src="data:image/gif;base64,R0lGODlhAQABAIABAADcgwAAACwAAAAAAQABAAACAkQBADs=" width="200" height="200" class="img-fluid rounded-circle" alt="Generic placeholder thumbnail">
<h4>Label</h4>
<span class="text-muted">Something else</span>
</div>
</section>
</div>
</div>
Related
How do I remove the underline on the active tab? This is the codepen: https://codepen.io/centem/pen/XWmPbVa
I tried styling the .nav-link.active to no avail. Trying to make it look like actual folder tabs. Thank you.
<div class="container"
<div class="row row-content">
<div class="col-12">
<h2>Charts</h2>
<ul class="nav nav-tabs">
<li class="nav-items">
<a class="nav-link active" href="#tab1" role="tab" data-toggle="tab">
Column Chart
</a>
</li>
<li class="nav-items">
<a class="nav-link" href="#tab2" role="tab" data-toggle="tab">
Treemap
</a>
</li>
<li class="nav-items">
<a class="nav-link" href="#tab3" role="tab" data-toggle="tab">
Donut Chart
</a>
</li>
<li class="nav-items">
<a class="nav-link" href="#tab4" role="tab" data-toggle="tab">
Time Series
</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade show active" id="tab1">
<h3>Column Chart <small>Lorem ipsum</small></h3>
<svg id="chart1" width="900" height="400"></svg>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab2">
<h3>Treemap <small>Lorem ipsum</small></h3>
<svg id="chart2" width="900" height="400"></svg>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab3">
<h3>Donut Chart <small>Lorem ipsum</small></h3>
<svg id="chart3" width="900" height="400"></svg>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab4">
<h3>Time Series <small>Lorem ipsum</small></h3>
<svg id="chart4" width="900" height="400"></svg>
</div>
</div>
</div>
</div>
</div>
Simply change li class nav-items to nav-item.
Explanation: there is no class nav-items, see Bootstrap 4 all css classes
Just change nav-items class to nav-item
nav-items class is invalid class as does not exist. modified code would be
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="#tab1" role="tab" data-toggle="tab">
Column Chart
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab2" role="tab" data-toggle="tab">
Treemap
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab3" role="tab" data-toggle="tab">
Donut Chart
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab4" role="tab" data-toggle="tab">
Time Series
</a>
</li>
</ul>
Just Copy and Past this Code
Let me know if its not working !
<div class="container"
<div class="row row-content">
<div class="col-12">
<h2>Charts</h2>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="#tab1" role="tab" data-toggle="tab">
Column Chart
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab2" role="tab" data-toggle="tab">
Treemap
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab3" role="tab" data-toggle="tab">
Donut Chart
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab4" role="tab" data-toggle="tab">
Time Series
</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade show active" id="tab1">
<h3>Column Chart <small>Lorem ipsum</small></h3>
<svg id="chart1" width="900" height="400"></svg>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab2">
<h3>Treemap <small>Lorem ipsum</small></h3>
<svg id="chart2" width="900" height="400"></svg>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab3">
<h3>Donut Chart <small>Lorem ipsum</small></h3>
<svg id="chart3" width="900" height="400"></svg>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab4">
<h3>Time Series <small>Lorem ipsum</small></h3>
<svg id="chart4" width="900" height="400"></svg>
</div>
</div>
</div>
</div>
</div>
I would like to have the dropdown show from the initial position for all menus and maintain the width of say 600px.
So even if i try to open the dropdown of say Main Menu 2 or Main Menu 3 or Main Menu 4, the dropdown should start from Main Menu 1 position. Here's a screen I made to understand better.
PS: This is on ng-Bootstrap 4 and hence some Angular related codes. Also, this is the generated HTML.
<ul class="nav justify-content-end">
<li class="nav-item">
<div class="d-inline-block dropdown" ngbdropdown="">
<button aria-haspopup="true" class="nav-link btn btn-link text-uppercase dropdown-toggle" id="dropdownBasic0" ngbdropdowntoggle="" aria-expanded="false">Main Menu 1</button>
<div aria-labelledby="dropdownBasic0" ngbdropdownmenu="" class="dropdown-menu" x-placement="bottom-left">
<div class="" ngbdropdownitem="">
<div class="row">
<div class="col-lg-4">
<h2 _ngcontent-c4="">Submenu 1</h2>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu A</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu B</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu C</a>
</div>
<div class="col-lg-4">
<h2 _ngcontent-c4="">Submenu 2</h2>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu D</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu E</a>
</div>
<div class="col-lg-4">
<h2 _ngcontent-c4="">Submenu 3</h2>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu F</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu G</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu H</a>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="nav-item">
<div class="d-inline-block dropdown" ngbdropdown="">
<button aria-haspopup="true" class="nav-link btn btn-link text-uppercase dropdown-toggle" id="dropdownBasic1" ngbdropdowntoggle="" aria-expanded="false">Main Menu 2</button>
<div aria-labelledby="dropdownBasic1" ngbdropdownmenu="" class="dropdown-menu" x-placement="bottom-left">
<div class="" ngbdropdownitem="">
<div class="row">
<div class="col-lg-4">
<h2 _ngcontent-c4="">Submenu 1</h2>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu A</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu B</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu C</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu D</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu E</a>
</div>
<div class="col-lg-4">
<h2 _ngcontent-c4="">Submenu 2</h2>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu F</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu G</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu H</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu I</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu J</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu K</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu L</a>
</div>
<div class="col-lg-4">
<h2 _ngcontent-c4="">Submenu 3</h2>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu M</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu N</a>
<a routerlink="/" ng-reflect-router-link="/" href="/">Menu O</a>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
This is the Angular Code:
<ul class="nav justify-content-end">
<li class="nav-item">
<div ngbDropdown class="d-inline-block">
<button class="nav-link" id="dropdownBasic0"
ngbDropdownToggle>Main Menu 1</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic0">
<div class="" ngbDropdownItem>
<div class="row">
<div class="col-lg-4">
<a routerLink="/">Sub Menu 1</a>
<a routerLink="/">Sub Menu 2</a>
<a routerLink="/">Sub Menu 3</a>
</div>
<div class="col-lg-4">
<a routerLink="/">Sub Menu 1</a>
<a routerLink="/">Sub Menu 2</a>
<a routerLink="/">Sub Menu 3</a>
</div>
<div class="col-lg-4">
<a routerLink="/">Sub Menu 1</a>
<a routerLink="/">Sub Menu 2</a>
<a routerLink="/">Sub Menu 3</a>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="nav-item">
<div ngbDropdown class="d-inline-block">
<button class="nav-link" id="dropdownBasic1"
ngbDropdownToggle>Main Menu 2</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<div class="" ngbDropdownItem>
<div class="row">
<div class="col-lg-12">
<a routerLink="/">Sub Menu 1</a>
<a routerLink="/">Sub Menu 2</a>
<a routerLink="/">Sub Menu 3</a>
<a routerLink="/">Sub Menu 4</a>
<a routerLink="/">Sub Menu 5</a>
<a routerLink="/">Sub Menu 6</a>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="nav-item">
<div ngbDropdown class="d-inline-block">
<button class="nav-link" id="dropdownBasic2"
ngbDropdownToggle>Main Menu 3</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic2">
<div class="" ngbDropdownItem>
<div class="row">
<div class="col-lg-6">
<a routerLink="/">Sub Menu 1</a>
<a routerLink="/">Sub Menu 2</a>
<a routerLink="/">Sub Menu 3</a>
</div>
<div class="col-lg-6">
<a routerLink="/">Sub Menu 1</a>
<a routerLink="/">Sub Menu 2</a>
<a routerLink="/">Sub Menu 3</a>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
Since you are using ngbDropdown - i thought about going about the question in Angular;
instead of fixed width to an arbitary 600px, i am using BS4 classes so that we get a responsive solution where 50% of width is for logo, the other 50% for our navigation buttons
Since we had to take the contents of the dropdown menu away from the default position (which is now commented in SB) of just under the toggle button, we had to manage the toggle effect ourselves;
also did some styling to get the effect that we wanted
You can see a working demo here
relevant HTML code:
<div class="row">
<div class="col-6">
LOGO AREA
</div>
<div class="col-3 ">
<div ngbDropdown class="fullWidth">
<button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle (click)="toggleShow1()">dropdown1</button>
</div>
</div>
<div class="col-3 ">
<div ngbDropdown class="fullWidth">
<button class="btn btn-outline-primary" id="dropdownBasic2" ngbDropdownToggle (click)="toggleShow2()">dropdown2</button>
</div>
</div>
</div>
<div class='row'>
<div class='col-6'>
</div>
<div class='col-6'>
<div class='dropdown-menu show' *ngIf="show1" >
<button ngbDropdownItem>Action - 1</button>
<button ngbDropdownItem>Another Action</button>
<button ngbDropdownItem>Something else is here</button>
</div>
<div class='dropdown-menu show' *ngIf="show2">
<button ngbDropdownItem>Action - 2</button>
<button ngbDropdownItem>Another Action</button>
<button ngbDropdownItem>Something else is here</button>
</div>
</div>
</div>
relevant TS code:
import { Component } from '#angular/core';
#Component({
selector: 'ngbd-dropdown-basic',
templateUrl: './dropdown-basic.html',
styles: [`
.fullWidth .btn {width:100%;}
.dropdown-menu.show{ position: initial; width: inherit;}
`]
})
export class NgbdDropdownBasic {
show1: boolean = false;
show2: boolean = false;
toggleShow1() {
if (this.show1) { this.show1 = false; }
else {
this.show1 = true;
(this.show2) ? this.show2 = false : '';
}
}
toggleShow2() {
if (this.show2) { this.show2 = false }
else {
this.show2 = true;
(this.show1) ? this.show1 = false : '';
}
}
}
I created a drop down menu fro my navbar, but it is not working when I hover on it.
My Template,
<header id="header" class="sticky-header" data-sticky-class="not-dark" >
<div id="header-wrap">
<div class="container clearfix">
<div class="divcenter" style="max-width:990px;">
<div id="primary-menu-trigger"><i class="icon-reorder"></i></div>
<!-- Logo
============================================= -->
<div id="logo" style="margin-top: 5px;">
<img src="assets/images/SW-Logo-Final.png" alt="Canvas Logo">
</div>
<span class="inputgroupcss col-sm-5" style="padding-top:12px;">
<input type="email" (keyup)="submit(button1.value)" #button1 class="form-control required email" placeholder="Search by Name or Email"
style="height:38px;">
<div class="col-sm-12 nopadding ">
<ul class="searchlist">
<li *ngFor="let detail of details">
<img [src]='detail.image' alt="profile_image" style="width: 35px;
height: 35px;">
<a (click)="redirect()" [routerLink]="['/demo/user',detail.profilename]">{{detail.profilename}}</a>
</li>
</ul>
</div>
</span>
<!-- #logo end -->
<!-- Primary Navigation
============================================= -->
<!-- <nav id="primary-menu" class="pull-left" style="margin-top:11px">
<form style="width:300px" id="widget-subscribe-form2" action="include/subscribe.php" role="form" method="post" class="nobottommargin">
<div class="input-group input-group-lg divcenter" style="max-width:600px;">
<input type="email" name="widget-subscribe-form-email" class="form-control required email" placeholder="Search by Name or Email" style="height:38px;">
<span class="input-group-addon" style="height: 38px;padding: 6px 16px;"><i class="icon-line-search"></i></span>
</div>
</form> <div *ngFor="let id of ids" class = "nopadding col-sm-12">
<button class="badge notification" (click) = 'getRequests()'>
<span class="glyphicon glyphicon-bell"></span>
</button>
<span class="noti"> {{id.sent_id}}</span>
</div>
</nav> -->
<nav id="primary-menu" class="dark">
<ul>
<li class="onhovercolor">
<a href="#">
<div>srilatha mattepu</div>
</a>
</li>
<li id="top-cart" class="onhovercolor notopmargin noleftpadding" *ngFor="let id of ids"><i class="icon-email3" style="font-size:18px;color: #d35b29;"></i><span>{{id.sent_id}}</span>
<div class="top-cart-content">
<div class="top-cart-title">
<h6 class="nobottommargin text-center">You have {{id.sent_id}} Requests pending</h6>
</div>
<div class="col-xs-12 dropdownpanel">
<h6 class="nobottommargin">Friend Requests</h6>
</div>
<div class="col-xs-12 dropdownpanel">
<div class="col-xs-3 nopadding">
<img src="assets/images/gallery3.png" style="height:45px;width:50px">
</div>
<div class="col-xs-6 nopadding">
<h5 class="nobottommargin pendingnamescss">srilatha mattepu</h5>
</div>
<div class="col-xs-3 nopadding text-right">
pending
</div>
</div>
<div class="col-xs-12 dropdownpanel">
<div class="col-xs-3 nopadding">
<img src="assets/images/gallery3.png" style="height:45px;width:50px">
</div>
<div class="col-xs-6 nopadding">
<h5 class="nobottommargin requestsnamecss">srilatha mattepu</h5>
</div>
<div class="col-xs-3 nopadding text-right">
pending
</div>
</div>
</div>
</li>
<li class="onhovercolor norightpadding">
<div class="downarrowcss"><i class="icon-caret-down" style="font-size:25px !important"></i></div>
<ul class="menu-pos-invert">
<li>
<a href="/demo/profile">
<div><i class="icon-user"></i> My Profile</div>
</a>
</li>
<li>
<a href="/demo/settings">
<div><i class="icon-settings"></i> Settings</div>
</a>
</li>
<li>
<a href="/demo/password">
<div><i class="icon-settings"></i> Change Password</div>
</a>
</li>
<li>
<a href="#">
<div><i class="icon-off"></i> Logout</div>
</a>
</li>
</ul>
</li>
<li class="onhovercolor hidden-sm hidden-md visible-xs">
<a href="#">
<div>srilatha mattepu</div>
</a>
<ul>
<li>PROFILE</li>
<li>SOCIAL ADDRESSES</li>
<li class="list-borbtom">CUSTOM INFO</li>
<li>MY SOCIETY<span>(ALL)</span></li>
<ul class="left-sub-list">
<li>PERSONAL</li>
<li>PROFESSIONAL</li>
</ul>
<li>REQUESTS</li>
<li>MESSAGES</li>
<li class="list-borbtom">SOCIETY UPDATES</li>
<li class="list-borbtom">SEARCH</li>
<li class="list-borbtom">PASSWORD</li>
<li>SETTINGS</li>
<li>LOGOUT</li>
<li>Qr Code</li>
</ul>
</li>
</ul>
</nav>
<!-- #primary-menu end -->
</div>
</div>
</div>
</header>
I created a drop down menu fro my navbar, but it is not working when I hover on it.
First thing is that you have to use pure Bootstrap Navbar code.
and then simply add below Custom jQuery, and see magic your Drop-down will be open on hover of your parent menu link hover.
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);
});
Please check attached fiddle.
I am trying to have a grid within in a list-group-item. It's working but my list-group-item is extending past the panel borders on the left and right. Can anyone tell me why it's extending past the borders?
Here is the jsfiddle.
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet"/>
<div class="container">
<div class="panel panel-default">
<div class="panel-heading h4">Leagues</div>
<ul class="list-group">
<li class="row list-group-item">
<a class="col-sm-2" ng-href="#">Name</a>
<a class="col-sm-2" ng-href="#">Tweak Roster</a>
<a class="col-sm-2" ng-href="#">This Week's Matchup</a>
</li>
<li class="row list-group-item">
<a class="col-md-3" ng-href="#">Name</a>
<a class="col-md-3" ng-href="#">Tweak Roster</a>
<a class="col-md-3" ng-href="#">This Week's Matchup</a>
</li>
</ul>
</div>
</div>
Change your markup to this
#import url('http://getbootstrap.com/dist/css/bootstrap.css');
<div class="container-fluid">
<div class="container panel panel-default">
<div class="panel-heading row">
<h4 class="panel-title col-md-12">Leagues</h4>
</div>
<ul class="list-group">
<li class="row list-group-item">
<a class="col-sm-2" ng-href="#">Name</a>
<a class="col-sm-2" ng-href="#">Tweak Roster</a>
<a class="col-sm-2" ng-href="#">This Week's Matchup</a>
</li>
<li class="row list-group-item">
<a class="col-md-3" ng-href="#">Name</a>
<a class="col-md-3" ng-href="#">Tweak Roster</a>
<a class="col-md-3" ng-href="#">This Week's Matchup</a>
</li>
</ul>
</div>
</div>
or this
#import url('http://getbootstrap.com/dist/css/bootstrap.css');
<div class="container-fluid">
<div class="container panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Leagues</h4>
</div>
<ul class="list-group">
<li class="row list-group-item">
<a class="col-sm-2" ng-href="#">Name</a>
<a class="col-sm-2" ng-href="#">Tweak Roster</a>
<a class="col-sm-2" ng-href="#">This Week's Matchup</a>
</li>
<li class="row list-group-item">
<a class="col-md-3" ng-href="#">Name</a>
<a class="col-md-3" ng-href="#">Tweak Roster</a>
<a class="col-md-3" ng-href="#">This Week's Matchup</a>
</li>
</ul>
</div>
</div>
because of class row - remove it and its negative margin will no longer be applied to the li
<li class="list-group-item">
<a class="col-md-3" ng-href="#">Name</a>
<a class="col-md-3" ng-href="#">Tweak Roster</a>
<a class="col-md-3" ng-href="#">This Week's Matchup</a>
</li>
is this what you had in mind? FIDDLE
I trying to put few html elements to show them properly. But could not get how to place them inline.
CODEPEN : CODEPEN DEMO
<div class="jumbotron">
<ul class="media-list">
<li class="media">
<a class="pull-left" href="#">
<img class="media-object" src="http://www.menucool.com/slider/prod/image-slider-4.jpg" height="35">
</a>
<div class="media-body">
<h6 class="media-heading"> This is small description of image </h6>
</div>
</li>
</ul>
<h6>Wat more? ....... </h6>
<ul class="nav nav-pills nav-stacked">
<li class="active">
<a href="#">
<span class="badge pull-right">42</span>
Only value
</a>
</li>
<span> Above code should look like this </span>
<img src="http://snag.gy/cPTCL.jpg">