Use css in canvas js code example
Example: html css canvas
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
</canvas>
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
</canvas>