title: Tooltip on the right side of the input
body: <p>I coded this simple CSS-trick to show when you click on the input (:focus) a tooltip will give you some information about the input. Everything is working but, the tooltip it's displayed below the input and not over. Actually I know that I can use margin to fix it, but I'm asking if there's a "more" clean way that when you use position absolute in this way, it will automatically align the tooltip over the input.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div&gt;
      &lt;input type="text" placeholder="Username"&gt;
      &lt;span class="input_info"&gt;Info1&lt;/span&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;input type="text" placeholder="Password"&gt;
      &lt;span class="input_info"&gt;Info2&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.input_info {
      display: none;
      position: absolute;
      background: #000;
      border: 1px solid #fff;
      color: #fff;
      width: 100px;
      margin-left: 80px;
  }
  
  input[type="text"]:focus + .input_info {
      display: block;
  }
  </code></pre>
  
  <p><a href="https://jsfiddle.net/xzqsaobu/" rel="nofollow noreferrer">https://jsfiddle.net/xzqsaobu/</a></p>