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:
#everything { text-align:center; float:left; }
Comments
Post a Comment