Take that same HTML, but use .nav-pills instead:

{% highlight html %} {% endhighlight %}

Pills are also vertically stackable. Just add .nav-stacked.

{% highlight html %} {% endhighlight %}