title: How to add background color to a multi-line paragraph in CSS?
body: <h1>So this is the concept:</h1>
  
  <p><a href="https://i.stack.imgur.com/sL071.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sL071.jpg" alt="enter image description here"></a></p>
  
  <p>Here's the basic sample <a href="https://codepen.io/billcastillo/pen/WJNzrE" rel="nofollow noreferrer">I made this on codepen</a> but there's a lack of padding for each end of a line.</p>
  
  <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>.wrapper {
    margin: 1em;
    max-width: 500px;
  }
  
  p {
    color: white;
    font-size: 24px;
    
    /* Main Style for the paragraph effect */
    display: inline;
    background: #191c34;
    padding: 4px;
    line-height: 1.8;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
    &lt;p&gt;
      The latest console of the world renown nintendo company which produced some of the most loved games of your childhood and the children today.
    &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I remember there was a solution using text-shadows / box-shadows?</p>