nav is a component not text :) text-align: center can be applied to tags
containing text eg p, h1-6

narrow the pill list to the width you want it to be, say 600px, then margin
left & right auto

<ul class="nav nav-tabs" style="width: 600px; margin-left: auto;
margin-right: auto">
        <li class="active"><a href="#">Home</a></li>
        <li><a href="#">Profile</a></li>
        <li><a href="#">Messages</a></li>
      </ul>

by default the nav will expand to the full available width

 - S




On 9 February 2012 21:27, tom12010 <[email protected]> wrote:

> Centering a nav list is easy to do usually...
>
> However, applying text-align:center doesn't cause the nav-pills
> content to center...why??
>
> I can write other/different css/list code but I'd really puzzled by
> this -- nothing in the css indicates that nav or nav-pills can't be
> centered in the browser window.
>
> Thank you, Tom

Reply via email to