title: vertically center the unordered list with class list-inline inside a div
body: <p>I am trying to vertically center the unordered list '.header-top-widget' inside a div. But no way it is being centered.</p>
  <p>I have tried:</p>
  <pre><code>.header-top-widget
  {
    display:flex;
    align-items:center;
  }
  </code></pre>
  <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>.header-top-widget a,
  .header-top-social a {
    display: inline-block;
    margin-right: 30px;
    line-height: 50px;
    font-size: 14px;
    color: #fff;
  }
  
  .header-top {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 50px;
    background-color: #0e2737;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"/&gt;
  
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/&gt;
  &lt;header class="header"&gt;
          &lt;div class="header-top"&gt;
              &lt;div class="container"&gt;
                  &lt;div class="d-flex justify-content-between"&gt;
                      &lt;div class="header-top-widget"&gt;
                          &lt;ul class="list-inline"&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="instagram" target="_blank" class="nav-link"&gt;
                                      &lt;i class="fas fa-phone"&gt;&lt;/i&gt; 96 Ernser Vista Suite 437, NY, US
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="instagram" target="_blank" class="nav-link"&gt;
                                      &lt;i class="fas fa-envelope-open-text"&gt;&lt;/i&gt; (123) 456-78-910
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                      &lt;div class="header-top-social"&gt;
                          &lt;ul class="header-top-social list-inline"&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="instagram" target="_blank"&gt;
                                      &lt;i class="fab fa-instagram-square"&gt;&lt;/i&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="twitter" target="_blank"&gt;
                                      &lt;i class="fab fa-twitter"&gt;&lt;/i&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="facebook" target="_blank"&gt;
                                      &lt;i class="fab fa-facebook-f"&gt;&lt;/i&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="linkedin" target="_blank"&gt;
                                      &lt;i class="fab fa-linkedin"&gt;&lt;/i&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li class="list-inline-item"&gt;
                                  &lt;a href="url" title="skype" target="_blank"&gt;
                                      &lt;i class="fab fa-youtube"&gt;&lt;/i&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;nav class=""&gt;
  
          &lt;/nav&gt;
      &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Why is ul not being centered in the div with flexbox? Am I doing anything wrong semantically? I have referred to various questions in SO. This may be duplicate but I am not able to solve this while trying various options.</p>
  <p>Please help with the workaround.</p>