title: Can't have my <div> element without a newline before it
body: <p>I want to make an animation, and it works, however the word Alan Turing is starting from a new line, but I don't want it. Span tag and display:inline or diplay:inline-block are not working.
  Here is a fragment of my CSS:
  <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>.inf{
      position: relative;
  }
  
  
  .inf ul{
    font-size: 13px;
    margin-top: 10px;
    position: absolute;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 10px 15px;
    left: 0px;
    list-style: none;
    border-radius: 5px;
    opacity: 0;
    overflow:hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }
  
  
  
  .inf li ,
  .products li {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:0.5s;
  }
  
  
  
  .inf a ,
  .products a {
    color: black;
    text-decoration: none;
  }
  
  
  .inf button:hover + ul{
    opacity: 1;
    pointer-events: all;
    transform: translateY(0px);
  }</code></pre>
  </div>
  </div>
  
  Here is my HTML.
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div style="display: inline-block" class='inf'&gt;
    &lt;button class="author"&gt;Alan Turing&lt;/button&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;bla bla bla&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>