I am trying to center my website's brand in the navbar using bootstrap 3.0 and have been unsuccessful in doing so. I have tried both of these solutions: twitter bootstrap -- center brand in nav bar Bootstrap: center some navbar items And neither has worked for me. Here is my current code:
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">My Website's Brand</a>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
I have tried text-align: center and auto margins and nothing has worked. Any ideas? EDIT: JSFiddle: http://jsfiddle.net/3Kqn8/