title: vertical align for three divs floated in one div
body: <p>i'd like to align vertically three divs of a container div, but all the 3 divs inside the container are floated, one in right, one in center and one in left, to make a navbar.</p>
  <p>I saw all the navbars in bootstrap and I'd like to take 3 navbars divs and put it in one div to make a navbar.</p>
  <p>I am a beginner of HTML code, so i hope you all can help me.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    width: 100%;
    font-size: 11px !important;
  }
  
  .sinistra {
    float: left;
    width: 30%;
    height: 7%;
    background-color: white !important;
    line-height: 10%;
    vertical-align: center;
  }
  
  .centro {
    display: inline-block;
    margin: 0 auto;
    width: 30%;
    height: 7%;
    line-height: 10%;
    vertical-align: center;
  }
  
  .destra {
    float: right;
    width: 40%;
    height: 7%;
    line-height: 10%;
    vertical-align: center;
  }
  
  a {
    font-size: 11px !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;head&gt;
    &lt;link rel="stylesheet" href="style.css"&gt;
    &lt;link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"&gt;
    &lt;script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div id="container"&gt;
      &lt;div class="sinistra"&gt;
        &lt;a class="navbar-brand" href="#"&gt;
          &lt;img src="/docs/5.1/assets/brand/bootstrap-logo.svg" alt="" width="30" height="24" class="d-inline-block align-text-top"&gt; aaaa
        &lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="centro"&gt; &lt;a&gt;aaa&lt;/a&gt;&lt;/div&gt;
      &lt;div class="destra"&gt;
        &lt;ul class="nav nav-tabs"&gt;
          &lt;li class="nav-item"&gt;
            &lt;a class="nav-link disabled" aria-current="page" href="#"&gt;Active&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item dropdown"&gt;
            &lt;a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false"&gt;Dropdown&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;
                &lt;hr class="dropdown-divider"&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a class="dropdown-item" href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
            &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
            &lt;a class="nav-link"&gt;Disabled&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>