title: Why is <p> and <h1> height larger than it's contents?
body: <p>I have a quick question, why is that my h1 and p height is bigger than it is supposed to be? Here is what I am talking about:</p>
  
  <p><a href="https://i.stack.imgur.com/4b9Eu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4b9Eu.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong? I have been at this for quite some time and would really appreciate some help! :) What I am trying to do is to make sure that the yellow background takes up only the amount of height and width as it needs for the text.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="main-content"&gt;
              &lt;div class="main-box"&gt;
                &lt;div class="kills-container"&gt;
                  &lt;h1&gt;5600&lt;/h1&gt;
                &lt;/div&gt;
                &lt;div class="label-container"&gt;
                  &lt;p&gt;Kills&lt;/p&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.main-content {
    display: flex;
    justify-content: space-between;
  
    position: absolute;
    top: 120px;
    left: 18.3%;
    width: 80.4%;
    height: 78%;
  }
  
  .main-box {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: white;
    height: 120px;
    width: 23%;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.05);
    background-color: green;
  }
  
  .kills-container {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    background-color: red;
  }
  
  .kills-container h1 {
    margin-left: 10%;
    background-color: yellow;
  }
  
  .label-container {
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }
  
  .label-container p {
    background-color: yellow;
    margin-left: 10%;
  }
  </code></pre>
  
  <p>Thanks! :)</p>