title: Write (0,0) in center of the canvas-HTML5
body: <p>I'm currently developing a drawing app which allows the user to click and drag to determine the size of the shape and also be able to make transformations with the shape drawn. This is the screenshot of what i have till now:
  <img src="https://i.stack.imgur.com/2tVNk.png" alt="enter image description here"></p>
  
  <p>I positioned the axis in the center of the canvas but now i want to write (0,0) in the center. As you can see, the CSS i wrote only makes it appear at the top but i want it at the center.
  Here's my codes for the transformation.html:</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
      &lt;head&gt;
           &lt;title&gt;Drawing Application&lt;/title&gt;
           &lt;link href="transform.css" rel="stylesheet"&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
  
      &lt;canvas id="myCanvas" width="1000" height="500"&gt;&lt;/canvas&gt;
      &lt;span style="margin-left:820px; margin-top:500px;"&gt;(0,0)&lt;/span&gt; &lt;!--tried with some CSS--&gt;
      &lt;br&gt;&lt;output id="out"&gt;&lt;/output&gt;
      &lt;script src="transform.js"&gt;&lt;/script&gt;
      &lt;div id="shapeProperties"&gt;
      &lt;p&gt;
      &lt;label&gt;
      &lt;div id="shape"&gt;
      &lt;p&gt;&lt;b&gt;Fill shapes option:&lt;/b&gt; &lt;input type="checkbox" id="fillType"&gt;&lt;/b&gt;&lt;br/&gt;
      &lt;p&gt;&lt;b&gt;&lt;center&gt;&lt;u&gt;Shapes&lt;/u&gt;&lt;/center&gt;&lt;/b&gt;&amp;nbsp; &amp;nbsp;
  
      &lt;p&gt;Polygon&amp;nbsp;&lt;input type="checkbox" id="polyBox"&gt;&lt;br/&gt;
  
      &lt;/div&gt;
  
      &lt;div id="color"&gt;
      &lt;b&gt;&lt;p&gt;&lt;center&gt;&lt;u&gt;Color Properties&lt;/u&gt;&lt;/center&gt;&lt;/b&gt;&lt;br/&gt;
      &lt;p&gt;Fill Color&amp;nbsp;&lt;input type="color" id="fillColor" value="#000000"/&gt;&lt;br/&gt;
      &lt;p&gt;Stroke Color&amp;nbsp; &lt;input type="color" id="strokeColor" value="#000000"/&gt;&lt;br/&gt;
      &lt;/div&gt;
      &lt;div id="range"&gt;
      &lt;b&gt;&lt;p&gt;&lt;center&gt;&lt;u&gt;Other Properties&lt;/u&gt;&lt;/center&gt;&lt;/b&gt;&lt;br/&gt;
      &lt;label&gt;Polygon Sides&amp;nbsp; &lt;input type="range" id="polygonSide" step="1" min="3" max="9" value="3"&gt;&lt;/label&gt;
      &lt;/div&gt;
      &lt;div id="clear"&gt;
      &lt;p&gt; &lt;center&gt;&lt;input id="clearCanvas" type="button" value="CLEAR"&gt;&lt;/center&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;/label&gt;
      &lt;/p&gt;
      &lt;/div&gt;
  
      &lt;/body&gt;
  
      &lt;/html&gt;
  </code></pre>
  
  <p>How can i do this? If you need the transformation.js please let me know. Any suggestions will be appreciated. Thanks.</p>