javascript - move text inside canvas element and make it centered -


i trying move divs texts hallo1 , hallo2 canvas element , make centered.
have , idea on how achieve this?

below code:

<canvas id="canvas1">hi</canvas>  <div>      hallo1 </div> <div>   hallo2 </div> <canvas id="canvas2"></canvas>  <div>      hallo1 </div> <div>   hallo2 </div> <canvas id="canvas3"></canvas>  <div>      hallo1 </div> <div>   hallo2 </div> <canvas id="canvas4"></canvas>  <div>      hallo1 </div> <div>   hallo2 </div> 

put in div , center text-align:center;. if still need on left side of screen use float:left;, this:

fiddle

#everything {   text-align:center;   float:left; } 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -