Skip to content

Instantly share code, notes, and snippets.

@6ui11em
Created March 30, 2012 14:51
Show Gist options
  • Save 6ui11em/2252065 to your computer and use it in GitHub Desktop.
Save 6ui11em/2252065 to your computer and use it in GitHub Desktop.
CSS: Bootstrap center nav-pills in a row
.nav-tabs > li, .nav-pills > li {
float:none;
display:inline-block;
*display:inline; /* ie7 fix */
zoom:1; /* hasLayout ie7 trigger */
}
.nav-tabs {
text-align:center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment