title: placing a div over a canvas in html5
body: <p>I am trying to place a div element over a canvas (it is for a game) on the center of my page. It is about a startscreen that I want to show over the canvas, before starting the game(this startscreen has options like "Play game", "Settings" etc). The problem is that I cannnot get this done, I have  searched a lot on Google, I have seen a lot of examples, but none of them seems to be working for me. Here is my code:</p>
  
  <pre><code>&lt;div id="gamecontainer"&gt;
              &lt;canvas id="myCanvas" width="800" height="600"&gt;
                  Sorry, &lt;strong&gt;CANVAS&lt;/strong&gt; is not supported by your browser. Get a more recent one to play my game!
              &lt;/canvas&gt;
  
              &lt;div id="gamestartscreen" class="gamelayer"&gt;
                  &lt;img src="images/icons/play.png" alt="Play Game" onclick="alert('ceve');"&gt;&lt;br&gt;
                  &lt;img src="images/icons/settings.png" alt="Settings"&gt;
              &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>here is the css:</p>
  
  <pre><code>#gamecontainer {
      width: 800px;
      height: 600px;
      background-color: beige;
      border: 1px solid black;
      position: relative;
      margin: 0 auto;
  }
  
  .gamelayer {
      width: 800px;
      height: 600px;
      position: absolute;
      display: none;
      z-index: 0;
  }
  
  
  /* Screen for the main menu (Like Play, Settings, etc.) */
  #gamestartscreen {
      position: relative;
      margin: 0 auto;
  }
  
  #gamestartscreen img {
      margin: 10px;
      cursor: pointer;
  }
  </code></pre>
  
  <p>Could someone please tell me where I am  doing it wrong?</p>