title: How to not display css padding when span element is empty
body: <p>I've been trying to solve the following problem.</p>
  
  <p>If you run this code you will notice blue and red elements.
  How can I hide  the 'red element' when there is no text to display (span is empty). And I would like to do the same thing with 'blue element' when there is no text inside it shouldn't be visible.
  The reason why is displayed is padding, but I would like to have padding because it looks nice.
  I am sure you guys are best of the best and find solution.
  Regards!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.myClassDer {
    font-size: 34px;
    color:white;
    background: blue;
    color: white;
    border-radius: 25px;
    padding: 7px;
    width: auto;
    height: auto; 
  }
  
  .myClassDie {
    font-size: 34px;
    color:black;
    background: red;
    color: white;
    border-radius: 25px;
    padding: 7px;
    width: auto;
    height: auto; 
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span class="myClassDer"&gt;here&lt;/span&gt;
  &lt;span class="myClassDie"&gt;&lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>