title: My CSS isn't being applied to elements with IDs
body: <p>I am trying to have a background box behind my text and I cant get it to work. I have done this before and it worked fine, but I can't see where I have gone wrong this time. I have checked to make sure I have linked the CSS to the HTML correctly by changing the <code>background-color</code>, which worked. </p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;link rel="shortcut icon" type="image/x-icon" href="SiteIcon.ico"&gt;
  &lt;title&gt;Navigation&lt;/title&gt;
  &lt;link rel="stylesheet" href="CSS/style for SubNav.css"&gt;
  &lt;/head&gt;
  &lt;body&gt; 
  &lt;h2&gt;&lt;center&gt;&lt;a href="Digital Portfolio.html"&gt;&lt;font color="orange" size="7"&gt;Navigation&lt;/font&gt;&lt;/a&gt;&lt;/center&gt;&lt;/h2&gt;
  &lt;center&gt;
          &lt;div id="1"&gt;&lt;a href="The Online World.html"&gt;The Online World&lt;/a&gt;&lt;/div&gt;
          &lt;div id="2"&gt;&lt;p&gt;&lt;a href="Animation.html"&gt;Animation&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
          &lt;div id="3"&gt;&lt;p&gt;&lt;a href="Creating a app.html"&gt;Creating an app&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
          &lt;div id="4"&gt;&lt;p&gt;&lt;a href="minigame.html"&gt;Mini Game&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
          &lt;div id="5"&gt;&lt;p&gt;&lt;a href="Gallery.html"&gt;Gallery&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
          &lt;div id="6"&gt;&lt;p&gt;&lt;a href="Be Creative.html"&gt;Be Creative&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
          &lt;div id="7"&gt;&lt;p&gt;&lt;a href="About me.html"&gt;About me&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>body {
      color: black;
      background-color: black;
      margin: 0;
  }
  
  #1{
      width: 7%;
      margin: 50px auto 50px auto;
      padding: 2%;
      background-color: white;
      box-shadow: 0px 0px 1px rgba(0,0,0,.90);
      position: relative;
  }
  </code></pre>