How can I get my span element to fill up the width of its parent div element, while having some padding?
The code below causes its width to surpass that of its parent.
Code
    <div style="width: 30rem" id="parent">
      <span
        style="
          background-color: green;
          display: block;
          padding: 1rem;
          width: 100%;
        ">
       Span
     </span>
    </div>

