title: how can I make the main container background color wrap around every element?
body: <p>am building a tribute page from freeCodeCamp and I am trying to style my main content background with a specific color (#ECEAEA). However, the background color is not covering all the main content area as desired. </p>
  
  <p>I have mocked up the tribute page but the background color is not wrapping all content. See the code section.</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>* {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
      line-height: 2rem;
      /*background-color:white; */ 
  }
  
  /* Global Styles */
  
  #main {
      background-color: #ECEAEA;
      width: 98%;
      margin: 25px auto;
      border-radius: 5px;
      /*position: relative;  
      box-sizing: border-box; */
      background-size: cover;
      min-height: 100%; 
  }
  
  #title, #main-para {
      text-align: center;
      margin: 20px auto;
      position: relative;
      top: 70px;
  }
  
  #img-div {
      width: 96%;
      background-color:white; 
      margin: 0 auto;
      border: 1px solid red; 
      position: relative; 
      top: 60px; 
      padding: 10px;
      border-radius: 5px;
  }
  
  figure, figcaption {
      text-align: center;
      padding-top: 10px;
  }
  
  #tribute-info {
      /*border: 1px solid green; */
      display: flex;
      flex-flow: column wrap;
      position: relative;
      top: 120px;
      align-items: center; 
      width: 60%;
      margin: 0 auto;
      box-sizing: border-box;
      border: 1px solid green;
      
  }
  
  #cite-para {
      line-height: 1.5em;
      text-align: left;
  }  
  
  blockquote {
      font-style: italic;
  }
  
  #link-target {
      font-size: 1.17em;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;title&gt;FCC: Tribute Page&lt;/title&gt;
      &lt;link rel="stylesheet" href="style.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;main id="main"&gt;
          &lt;h1 id="title"&gt;Dr Norman Bourlaug&lt;/h1&gt;
          &lt;p id="main-para"&gt;The man who saved a billion lives&lt;/p&gt;
          &lt;div id="img-div"&gt;
              &lt;figure&gt;
                  &lt;img src="https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg" id="image"
                      alt="Dr Norman Borlaug seen standing in Mexican wheat field with a group of biologists"&gt;
                  &lt;figcaption id="img-caption"&gt;Dr. Norman Bourlaug, third from the left, trains biologists in Mexico on
                      how to
                      increase wheat yield - part of his life-long war on hunger.
                  &lt;/figcaption&gt;
              &lt;/figure&gt;
          &lt;/div&gt;
          &lt;section id="tribute-info"&gt;
              &lt;h3&gt;Here's a time line of Dr.Borlaug's life&lt;/h3&gt;
              &lt;ul id="history"&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1914&lt;/strong&gt; - Born in Cresco Iowa
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1933&lt;/strong&gt; - Leaves his family's farm to attend the University of Minnesota, thanks to a
                      Depression era program known as the &amp;quot;National Youth Administration&amp;quot;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1935&lt;/strong&gt; - Has to stop school and save up more money. Works in the Civilian
                      Conservation Corps, helping starving Americans. &amp;quot;I saw how food changed them&amp;quot;, he said.
                      &amp;quot;All of this
                      left scars on me.&amp;quot;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1937&lt;/strong&gt; - Finishes university and takes a job in the US Forestry Service
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1938&lt;/strong&gt; - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts.
                      Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about
                      breeding pest-resistent plants.
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1941&lt;/strong&gt; - Tries to enroll in the military after the Pearl Harbor attack, but is
                      rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria,
                      disinfectants, and other applied science.
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1942&lt;/strong&gt; - Receives a Ph.D. in Genetics and Plant Pathology
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1944&lt;/strong&gt; - Rejects a 100&amp;percnt; salary increase from Dupont, leaves behind his
                      pregnant wife,
                      and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds
                      6,000 different strains of disease resistent wheat - including different varieties for each major
                      climate on Earth.
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1945&lt;/strong&gt; - Discovers a way to grown wheat twice each season, doubling wheat yields
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1953&lt;/strong&gt; - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American
                      breed, creating a strain that responds well to fertilizer. It goes on to provide 95&amp;percnt; of
                      Mexico's
                      wheat.
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1962&lt;/strong&gt; - Visits Delhi and brings his high-yielding strains of wheat to the Indian
                      subcontinent in time to help mitigate mass starvation due to a rapidly expanding population
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1970&lt;/strong&gt; - receives the Nobel Peace Prize
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1983&lt;/strong&gt; - helps seven African countries dramatically increase their maize and sorghum
                      yields
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;1984&lt;/strong&gt; - becomes a distinguished professor at Texas A&amp;M University
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;2005&lt;/strong&gt; - states &amp;quot;we will have to double the world food supply by 2050.&amp;quot;
                      Argues that genetically modified crops are the only way we can meet the demand, as we run out of
                      arable land. Says that GM crops are not inherently dangerous because &amp;quot;we've been genetically
                      modifying plants and animals for a long time. Long before we called it science, people were
                      selecting the best breeds.&amp;quot;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;strong&gt;2009&lt;/strong&gt; - dies at the age of 95.
                  &lt;/li&gt;
              &lt;/ul&gt;
              &lt;blockquote
                  cite="http://news.rediff.com/report/2009/sep/14/pm-pays-tribute-to-father-of-green-revolution-borlaug.htm"&gt;
                  &lt;p id="cite-para"&gt;
                      &amp;quot;Borlaug's life and achievement are testimony to the far-reaching contribution that one man's
                      towering intellect, persistence and scientific vision can make to human peace and progress.&amp;quot;
                  &lt;/p&gt;
                  &lt;cite&gt;-- Indian Prime Minister Manmohan Singh&lt;/cite&gt;
              &lt;/blockquote&gt;
          &lt;/section&gt;
          &lt;h3 id="link-target"&gt;If you have time, you should read more about this incredible human being on his &lt;a
                  href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank" id="tribute-link"&gt;
                  Wikipedia entry&lt;/a&gt;&lt;/h3&gt;
  
      &lt;/main&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I expect the main content background color to cover the entire content.<a href="https://i.stack.imgur.com/IL8p1.png" rel="nofollow noreferrer">enter image description here</a></p>