css triangle for bootstrap left nav
by niki4810
HTML
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<div class="container-fluid">
<div class="row-fluid">
<!-- Left Nav -->
<div class="span3 group">
<div class="pull-left">
<ul class="nav nav-stacked nav-tabs">
<li> <a href="#">Home</a>
</li>
<li class="active"><a href="#">About</a>
</li>
<li><a href="#">Contact</a>
</li>
</ul>
</div>
<div class="pull-left"> <a href="#">=</a>
</div>
</div>
<!-- Main Content -->
<div class="span9">
<div class="hero-unit">
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<p><a href="#" class="btn btn-primary btn-large">Learn more »</a>
</p>
</div>
</div>
</div>
</div>
CSS
body {
padding : 5px;
/* background-color: #ccc;*/
}
.nav-tabs > .active > a, .nav-tabs > .active > a:hover {
color: #ffffff;
background-color:#1b4860;
}
/*
.nav > li.active:before {
content :"";
float:right;
margin-top :10px;
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right:10px solid #fff;
}*/
.span3 ul, .span3 a {
float:left
}
/*clear fix*/
.group:before, .group:after {
content:"";
display: table;
}
.group:after {
clear: both;
}
.group {
zoom: 1;
/* For IE 6/7 (trigger hasLayout) */
}