title: Style for loop with CSS
body: <p>Im supposed to make 8 boxes and style them each, make the boxes with for loop. Every odd box should look different then the others. I have tried to make an id, but when i use the id in CSS, it wont do anything. Can someone help? </p>
  
  <p>Here is the code i have:</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-js lang-js prettyprint-override"><code>var text = "";
  var i;
  for (i = 1; i &lt; 10; i++) {
    text += "Box number " + i + "&lt;br&gt;";
  }
  document.getElementById("demo").innerHTML = text;</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.demo {
    border: black;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p id="demo"&gt;&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>