Why are none of modern aligning methods working for this markup?
<h1>I am currently working on a webpage ...</h1>

<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>.content {
  background-color: #BAC9FF;
  height: 100vh;
}
.navbar {
  height: 10vh;
  background-color: white;
  display: block;
}
.title {
  font-family: arial;
  font-size: 3vh;
  display: inline-block;
  padding-left: 1vw;
  margin-top: 3vh;
}
.logo {
  display: inline-block;
  vertical-align: middle;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="content"&gt;
  &lt;div class="navbar"&gt;
    &lt;div class="title"&gt;
      我的 DICTIONARY
    &lt;/div&gt;
    &lt;div class="logo"&gt;
      &lt;img src="logo.png" width="60" height="50"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<hr>

<p>I have tried applying several techniques such as "<code>margin-left: auto; margin-right: auto</code>" and also tried changing it to "block" and forcing my navbar elements into place by using <code>display:absolute</code>. However, to no avail, I was not able to. Is there any suggestion to transform my page from the current ...</p>

<p><a href="https://i.stack.imgur.com/CZR7d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CZR7d.png" alt="Current"></a></p>

<h2>To, my mock-up (As you can see, the logo is centered):</h2>

<p><a href="https://i.stack.imgur.com/LSns9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LSns9.png" alt="Mock-up"></a></p>