Partage
  • Partager sur Facebook
  • Partager sur Twitter

Bootstrap navbar

Sujet résolu
    25 avril 2019 à 18:13:24

    Bonjour j'ai un problème je n'arrive pas a mettre mon brand à gauche et laisser le reste a droite,merci de vos réponses voilà mon code :

    <header class="container-fluid">

    <nav class="navbar navbar-expand-lg navbar-light justify-content-end" style="background-color: #e3f2fd">

    <div class="row">

      <a class="navbar-brand" href="#">Projet python</a>

      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

    <span class="navbar-toggler-icon"></span>

      </button>

      <div class="collapse navbar-collapse" id="navbarNav">

    <ul class="navbar-nav" >

      <li class="nav-item active" >

    <a class="nav-link" href="site.html">Accueil</a>

      </li>

      <li class="nav-item">

    <a class="nav-link" href="projet.html">Le projet</a>

      </li>

      <li class="nav-item">

    <a class="nav-link" href="galerie.html">Galerie</a>

      </li>

      <li class="nav-item">

    <a class="nav-link" href="contact.html">Contact</a>

      </li>

    </ul>

      </div>

    </nav>

    </div>

    </header>

    • Partager sur Facebook
    • Partager sur Twitter
      25 avril 2019 à 21:47:12

      Bonjour,

      Tiens un peut comme ca :

      <!DOCTYPE html>
          <head>
              <link rel="icon" type="assets/img/png" href="favicon.png" />
              <meta charset="UTF-8">
              <meta name="viewport" content="width=device-width, initial-scale=1">
              <title>Test-Ocr</title>
            <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin=
      "anonymous" type="text/css"> -->
      
              <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
              <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
              <link rel="stylesheet" href="style.css" type="text/css">
              <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
         
          <style type="text/css">
      
              .navbar-brand {
                  color: #6497fc !important; /* change la couleur du logo*/
              }
      
          </style>
      
          </head>
          <body>
      
                  <nav class="navbar navbar-expand-lg fixed-top navbar-light justify-content-between" style="background-color: #e3f2fd">
                      <a class="navbar-brand" href="#"><strong>Projet python</strong></a>
      
                    <div class="navbar-header">    
                      
                       <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                      <span class="navbar-toggler-icon"></span>
                       </button>
                    </div>
      
                    <div class="collapse navbar-collapse" id="navbarSupportedContent">
                      <ul class="nav navbar-nav ml-auto">
                        <li class="nav-item">
                          <a class="nav-link" href="#">Accueil</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#">Le projet</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#">Galerie</a>
                        </li>
                        <li class="nav-item">
                          <a class="nav-link" href="#">Contact</a>
                        </li>
                      </ul>
                    </div>
                  </nav>
      
      
      
      
          <!-- Optional JavaScript -->
          <!-- jQuery first, then Popper.js, then Bootstrap JS -->
          <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
          <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
          <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
        
      
          </body>   
      </html>



      • Partager sur Facebook
      • Partager sur Twitter

      Compos sui.

      Bootstrap navbar

      × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
      • Editeur
      • Markdown