Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Bootstrap. Active menu item marking

I use standart twitter bootstrap menu:

<ul class="nav nav-pills">
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
</ul>

How to mark active menu item?

like image 837
Wolter Avatar asked Feb 19 '26 21:02

Wolter


2 Answers

You just have to add "active" in your li like :

<li class="active">
    <a href="#"></a> 
</li>
like image 89
Chris Avatar answered Feb 24 '26 11:02

Chris


Add a class of the active to the li

http://twitter.github.com/bootstrap/components.html#navbar

like image 21
ashley Avatar answered Feb 24 '26 11:02

ashley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!