Menu made in Bootstrap [closed]

4

How to center a menu made in Pingendo Bootstrap?

<html>
  <head>
    <meta charset="utf-8">
    <title>Boletim Online</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script><scripttype="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script></head><bodydraggable="true">
    <div class="navbar navbar-default navbar-static-top navbar-inverse">
      <div class="container">
        <div class="navbar-header">
          <a type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></a>
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <a class="navbar-brand" href="index.php" draggable="true">Administrador</a>
        </div>
        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav navbar-left">
            <li>
              <a href="cadastroturmas.php">Turmas</a>
            </li>
          </ul>
        </div>
      </div>
    </div>
</body>
</html>
    
asked by anonymous 25.11.2014 / 14:07

1 answer

2

Set in css as described here that I believe solves your problem:

<ul class="nav navbar-nav nav-center">
    <li>
        <a href="cadastroturmas.php">Turmas</a>
    </li>
.navbar{
    padding : 0 25px;
}

.nav-center{
    position: relative;
    left: 30%;
}

link

It is important that you have a percentage to maintain responsiveness.

    
25.11.2014 / 19:32